mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 20:02:17 +00:00
serial: 8250_bcm7271: use NULL to initialized a null pointer
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>
This commit is contained in:
parent
130432076f
commit
8a66b31a15
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue