aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/dw9807-vcm.c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2018-07-20 17:04:50 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-17 14:56:28 -0400
commit24614c1e906debe791e2227f3a8936c7ae3954ed (patch)
treec7f98231a70d44b877398a7ac8a73800d53deee8 /drivers/media/i2c/dw9807-vcm.c
parentmedia: dt-bindings: dw9714, dw9807-vcm: Add files to MAINTAINERS, rename files (diff)
downloadlinux-dev-24614c1e906debe791e2227f3a8936c7ae3954ed.tar.xz
linux-dev-24614c1e906debe791e2227f3a8936c7ae3954ed.zip
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 <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c/dw9807-vcm.c')
-rw-r--r--drivers/media/i2c/dw9807-vcm.c1
1 files changed, 0 insertions, 1 deletions
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);