From: Sakari Ailus Date: Tue, 2 Jan 2018 10:51:57 +0000 (-0500) Subject: media: dw9714: Call pm_runtime_idle() at the end of probe() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fa4293346bd470bfabbd7b69616c7d2608404f52;p=openwrt%2Fstaging%2Fblogic.git media: dw9714: Call pm_runtime_idle() at the end of probe() 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 Tested-by: Rajmohan Mani Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/dw9714.c b/drivers/media/i2c/dw9714.c index ed01e8bd4331..78322102fa3f 100644 --- a/drivers/media/i2c/dw9714.c +++ b/drivers/media/i2c/dw9714.c @@ -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;