mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
[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>
This commit is contained in:
parent
4f388a9210
commit
b888d23214
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue