diff options
author | Anton Protopopov <a.s.protopopov@gmail.com> | 2016-02-07 07:27:32 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-02-10 14:27:29 +0300 |
commit | b888d232142c0ac111c7e82d1731c6fbd56fc1fe (patch) | |
tree | a41ca9d6dd01e20fc8f35aa08a48a5bd6aa1d06a /drivers/media | |
parent | 4f388a9210e2a2c1cd83a5580b74aa13876dbf14 (diff) | |
download | linux-b888d232142c0ac111c7e82d1731c6fbd56fc1fe.tar.xz |
[media] media: i2c/adp1653: probe: fix erroneous return value
The adp1653_probe() function may return positive value EINVAL
which is obviously wrong.
Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/i2c/adp1653.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/adp1653.c b/drivers/media/i2c/adp1653.c index 7e9cbf757e95..fb7ed730d932 100644 --- a/drivers/media/i2c/adp1653.c +++ b/drivers/media/i2c/adp1653.c @@ -497,7 +497,7 @@ static int adp1653_probe(struct i2c_client *client, if (!client->dev.platform_data) { dev_err(&client->dev, "Neither DT not platform data provided\n"); - return EINVAL; + return -EINVAL; } flash->platform_data = client->dev.platform_data; } |