From 6bc3703dcf0e6891a55987cbae0823c8c185c5e5 Mon Sep 17 00:00:00 2001 From: Sugaya Taichi Date: Thu, 18 Apr 2019 15:21:25 +0900 Subject: [PATCH] serial: Fix using plain integer instead of Null pointer Fix build warning that using plain integer as Null pointer. This is reported by kbuild test robot. Fixes: ba44dc043004 ("serial: Add Milbeaut serial control") Signed-off-by: Sugaya Taichi Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/milbeaut_usio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/milbeaut_usio.c b/drivers/tty/serial/milbeaut_usio.c index d303b7d4bb20..4a10604211be 100644 --- a/drivers/tty/serial/milbeaut_usio.c +++ b/drivers/tty/serial/milbeaut_usio.c @@ -500,7 +500,7 @@ static struct uart_driver mlb_usio_uart_driver = { static int mlb_usio_probe(struct platform_device *pdev) { - struct clk *clk = devm_clk_get(&pdev->dev, 0); + struct clk *clk = devm_clk_get(&pdev->dev, NULL); struct uart_port *port; struct resource *res; int index = 0; -- 2.30.2