summaryrefslogtreecommitdiff
path: root/drivers/staging/most
diff options
context:
space:
mode:
authorMarcin Ciupak <marcin.s.ciupak@gmail.com>2018-06-15 17:21:09 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-28 16:08:51 +0300
commitefc8f3b2f3177c3946f12db838ed58fa032f74c0 (patch)
tree9ed04a3dadf77e59e40586de8b8f10ff69b7c14f /drivers/staging/most
parent7c5746c4487349976d524596f8779c63ac063728 (diff)
downloadlinux-efc8f3b2f3177c3946f12db838ed58fa032f74c0.tar.xz
staging: most: fix sparse warning Using plain integer as NULL pointer
This patch fixes following sparse warning: Using plain integer as NULL pointer in drivers/staging/most/dim2/dim2.c Signed-off-by: Marcin Ciupak <marcin.s.ciupak@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r--drivers/staging/most/dim2/dim2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/most/dim2/dim2.c b/drivers/staging/most/dim2/dim2.c
index fe90a7cb56f7..31fbc1a75b06 100644
--- a/drivers/staging/most/dim2/dim2.c
+++ b/drivers/staging/most/dim2/dim2.c
@@ -785,7 +785,7 @@ static int dim2_probe(struct platform_device *pdev)
if (ret)
return ret;
- dev->disable_platform = pdata ? pdata->disable : 0;
+ dev->disable_platform = pdata ? pdata->disable : NULL;
dev_info(&pdev->dev, "sync: num of frames per sub-buffer: %u\n", fcnt);
hal_ret = dim_startup(dev->io_base, dev->clk_speed, fcnt);