pwm: tiecap: Remove duplicate put_sync call
authorSourav Poddar <sourav.poddar@ti.com>
Wed, 18 Dec 2013 11:36:54 +0000 (17:06 +0530)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 23 Jan 2014 14:19:18 +0000 (15:19 +0100)
Remove duplicate 'pm_runtime_put_sync' in the remove path.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-tiecap.c

index 4e5c3d1..032092c 100644 (file)
@@ -279,7 +279,6 @@ static int ecap_pwm_remove(struct platform_device *pdev)
        pwmss_submodule_state_change(pdev->dev.parent, PWMSS_ECAPCLK_STOP_REQ);
        pm_runtime_put_sync(&pdev->dev);
 
-       pm_runtime_put_sync(&pdev->dev);
        pm_runtime_disable(&pdev->dev);
        return pwmchip_remove(&pc->chip);
 }