Commit b888d232 authored by Anton Protopopov's avatar Anton Protopopov Committed by Mauro Carvalho Chehab

[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: default avatarAnton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 4f388a92
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment