From: Sakari Ailus Date: Fri, 20 Jul 2018 21:04:50 +0000 (-0400) Subject: media: dw9807-vcm: Remove redundant pm_runtime_set_suspended in remove X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=24614c1e906debe791e2227f3a8936c7ae3954ed;p=openwrt%2Fstaging%2Fblogic.git media: dw9807-vcm: Remove redundant pm_runtime_set_suspended in remove The device is already suspended when it's the driver's remove function is called. Remove redundant pm_runtime_set_suspended call. Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/dw9807-vcm.c b/drivers/media/i2c/dw9807-vcm.c index 8ba3920b6e2f..a532c57dc636 100644 --- a/drivers/media/i2c/dw9807-vcm.c +++ b/drivers/media/i2c/dw9807-vcm.c @@ -229,7 +229,6 @@ static int dw9807_remove(struct i2c_client *client) struct dw9807_device *dw9807_dev = sd_to_dw9807_vcm(sd); pm_runtime_disable(&client->dev); - pm_runtime_set_suspended(&client->dev); dw9807_subdev_cleanup(dw9807_dev);