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: ba44dc0430 ("serial: Add Milbeaut serial control")
Signed-off-by: Sugaya Taichi <sugaya.taichi@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sugaya Taichi 2019-04-18 15:21:25 +09:00 committed by Greg Kroah-Hartman
parent 3b8a1f45e1
commit 6bc3703dcf

View File

@ -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;