]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: Fix error code in ov5693_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Jul 2020 10:55:29 +0000 (12:55 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 06:08:32 +0000 (08:08 +0200)
commitd172ef2dd53b090cbf3f4be0bd057ed4b738fa26
treeab8848441f1c494d3b4e4a57ecc40b50bf3efa16
parent847f96577d23bc4c51e4548a8d0671ee8596f6f2
media: atomisp: Fix error code in ov5693_probe()

If gmin_camera_platform_data() returns NULL then we should return a
negative error instead of success.

Fixes: da8e9a5da1e7 ("media: staging: atomisp: Add driver prefix to Kconfig option and module names")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/i2c/ov5693/atomisp-ov5693.c