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 коммит произвёл Greg Kroah-Hartman
Родитель 3b8a1f45e1
Коммит 6bc3703dcf
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -500,7 +500,7 @@ static struct uart_driver mlb_usio_uart_driver = {
static int mlb_usio_probe(struct platform_device *pdev) 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 uart_port *port;
struct resource *res; struct resource *res;
int index = 0; int index = 0;