Skip to content

Commit

Permalink
serial: Fix using plain integer instead of Null pointer
Browse files Browse the repository at this point in the history
Fix build warning that using plain integer as Null pointer.
This is reported by kbuild test robot.

Fixes: ba44dc0 ("serial: Add Milbeaut serial control")
Signed-off-by: Sugaya Taichi <sugaya.taichi@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Sugaya Taichi authored and Greg Kroah-Hartman committed Apr 25, 2019
1 parent 3b8a1f4 commit 6bc3703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/milbeaut_usio.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 6bc3703

Please sign in to comment.