Skip to content

Commit

Permalink
serial: 8250_bcm7271: use NULL to initialized a null pointer
Browse files Browse the repository at this point in the history
Pointer membase is currently being in initialized with zero rather
than NULL. Fix this.

Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210719095533.14017-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Colin Ian King authored and Greg Kroah-Hartman committed Jul 21, 2021
1 parent 1304320 commit 8a66b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/8250/8250_bcm7271.c
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ static int brcmuart_probe(struct platform_device *pdev)
struct clk *baud_mux_clk;
struct uart_8250_port up;
struct resource *irq;
void __iomem *membase = 0;
void __iomem *membase = NULL;
resource_size_t mapbase = 0;
u32 clk_rate = 0;
int ret;
Expand Down

0 comments on commit 8a66b31

Please sign in to comment.