media: dw9807-vcm: Remove redundant pm_runtime_set_suspended in remove
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 20 Jul 2018 21:04:50 +0000 (17:04 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 17 Sep 2018 18:56:28 +0000 (14:56 -0400)
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>
drivers/media/i2c/dw9807-vcm.c

index 8ba3920b6e2f470e2a3b514fa2e1ea2ccd3e7ff6..a532c57dc636c32df7c0f358aaa81bcc396600c5 100644 (file)
@@ -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);