Skip to content

Commit

Permalink
[media] media: i2c/adp1653: probe: fix erroneous return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anton Protopopov authored and Mauro Carvalho Chehab committed Feb 10, 2016
1 parent 4f388a9 commit b888d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/i2c/adp1653.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b888d23

Please sign in to comment.