]> 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)
commitd225c5971876551d62e18cf3658794161b192d28
treeab8848441f1c494d3b4e4a57ecc40b50bf3efa16
parentb774b074d0279d3abb8b2f18dc52faffcc8adf4e
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: 4a794a1de712 ("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