Commit f54f5fd0 authored by Kieran Bingham's avatar Kieran Bingham Committed by Mauro Carvalho Chehab

media: i2c: ov08x40: Make remove callback return void

In commit ed5c2f5f ("i2c: Make remove callback return void") drivers
were updated to remove the return value of the remove callback, and
return void.

The OV08x40 was added after this commit but was not compile tested at
the time due to a KConfig issue, and this warning was missed.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Fixes: 38fc5136 ("media: i2c: Add ov08x40 image sensor driver")
Signed-off-by: default avatarKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 483af3fe
...@@ -3281,7 +3281,7 @@ static int ov08x40_probe(struct i2c_client *client) ...@@ -3281,7 +3281,7 @@ static int ov08x40_probe(struct i2c_client *client)
return ret; return ret;
} }
static int ov08x40_remove(struct i2c_client *client) static void ov08x40_remove(struct i2c_client *client)
{ {
struct v4l2_subdev *sd = i2c_get_clientdata(client); struct v4l2_subdev *sd = i2c_get_clientdata(client);
struct ov08x40 *ov08x = to_ov08x40(sd); struct ov08x40 *ov08x = to_ov08x40(sd);
...@@ -3292,8 +3292,6 @@ static int ov08x40_remove(struct i2c_client *client) ...@@ -3292,8 +3292,6 @@ static int ov08x40_remove(struct i2c_client *client)
pm_runtime_disable(&client->dev); pm_runtime_disable(&client->dev);
pm_runtime_set_suspended(&client->dev); pm_runtime_set_suspended(&client->dev);
return 0;
} }
static const struct dev_pm_ops ov08x40_pm_ops = { static const struct dev_pm_ops ov08x40_pm_ops = {
......
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