media: dw9714: Call pm_runtime_idle() at the end of probe()
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 2 Jan 2018 10:51:57 +0000 (05:51 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 23 Jan 2018 12:44:01 +0000 (07:44 -0500)
Call pm_runtime_idle() at the end of the driver's probe() function to
enable the device to reach low power state once probe() finishes.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Rajmohan Mani <rajmohan.mani@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/dw9714.c

index ed01e8b..7832210 100644 (file)
@@ -183,6 +183,7 @@ static int dw9714_probe(struct i2c_client *client)
 
        pm_runtime_set_active(&client->dev);
        pm_runtime_enable(&client->dev);
+       pm_runtime_idle(&client->dev);
 
        return 0;