summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSugaya Taichi <sugaya.taichi@socionext.com>2019-04-18 15:21:25 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-25 11:37:41 +0200
commit6bc3703dcf0e6891a55987cbae0823c8c185c5e5 (patch)
tree4da178a89ba13d83959bd063feab1d6b28783cdf /drivers
parent3b8a1f45e1b3886593a7cbb0aca09d4d0a9e23df (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tty/serial/milbeaut_usio.c2
1 files changed, 1 insertions, 1 deletions
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;