mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 14:46:47 +07: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
@ -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 New Issue
Block a user