Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <sugaya.taichi@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sugaya Taichi and committed by
Greg Kroah-Hartman
6bc3703d 3b8a1f45

+1 -1
+1 -1
drivers/tty/serial/milbeaut_usio.c
··· 500 500 501 501 static int mlb_usio_probe(struct platform_device *pdev) 502 502 { 503 - struct clk *clk = devm_clk_get(&pdev->dev, 0); 503 + struct clk *clk = devm_clk_get(&pdev->dev, NULL); 504 504 struct uart_port *port; 505 505 struct resource *res; 506 506 int index = 0;