]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drivers: net: davinci_mdio: remove pm runtime calls from suspend callbacks
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 24 Jun 2016 18:23:47 +0000 (21:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2016 12:57:18 +0000 (08:57 -0400)
PM runtime is disabled when Davinci MDIO .suspend_late() and
.resume_early() callbacks are called. As result, any PM runtime calls here will
be just a nop and can be removed.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_mdio.c

index 2e19dd14734a341dcc6a6698e5ef5af74a1bd7e9..291c42e761f37b76caf6d09f1bfa323ca4ef3054 100644 (file)
@@ -436,7 +436,6 @@ static int davinci_mdio_suspend(struct device *dev)
 
        data->suspended = true;
        spin_unlock(&data->lock);
-       pm_runtime_put_sync(data->dev);
 
        /* Select sleep pin state */
        pinctrl_pm_select_sleep_state(dev);
@@ -451,8 +450,6 @@ static int davinci_mdio_resume(struct device *dev)
        /* Select default pin state */
        pinctrl_pm_select_default_state(dev);
 
-       pm_runtime_get_sync(data->dev);
-
        spin_lock(&data->lock);
        /* restart the scan state machine */
        __davinci_mdio_reset(data);