diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2019-02-07 12:13:38 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-02-07 20:38:24 +0300 |
commit | db89a47fb9c71e769b817fa669631b04c2aba440 (patch) | |
tree | 91182f129cf9edba20a7ea1a3c6a72f3517814e8 /drivers/leds/leds-powernv.c | |
parent | d75e77ed14f86034ace17e65ab6a6261dd0858c2 (diff) | |
download | linux-db89a47fb9c71e769b817fa669631b04c2aba440.tar.xz |
media: pxa_camera: fix smatch warning
drivers/media/platform/pxa_camera.c:2400 pxa_camera_probe() error: we previously assumed 'pcdev->pdata' could be null (see line 2397)
First check if platform data is provided, then check if DT data is provided,
and if neither is provided just return with -ENODEV.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/leds/leds-powernv.c')
0 files changed, 0 insertions, 0 deletions