Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}