aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@linux.intel.com>2013-08-12 07:05:41 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-08-16 11:11:33 -0400
commitb168386eaf560bf13fcf2c166453714e779f763e (patch)
treeb08e3e9d0df972e8c2fbe50903b1b1e8cbdc5398 /drivers/gpio
parent81e9df2c946e49044877136789ecae61cbf65c81 (diff)
gpio-lynxpoint: Fix warning about unbalanced pm_runtime_enable
Missing pm_runtime_disable call in driver remove path caused an unbalanaced pm_runtime_enable warning when driver was reloaded Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-lynxpoint.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-lynxpoint.c b/drivers/gpio/gpio-lynxpoint.c
index 761c4705dfbb..2d9ca6055e5e 100644
--- a/drivers/gpio/gpio-lynxpoint.c
+++ b/drivers/gpio/gpio-lynxpoint.c
@@ -444,6 +444,7 @@ static int lp_gpio_remove(struct platform_device *pdev)
444{ 444{
445 struct lp_gpio *lg = platform_get_drvdata(pdev); 445 struct lp_gpio *lg = platform_get_drvdata(pdev);
446 int err; 446 int err;
447 pm_runtime_disable(&pdev->dev);
447 err = gpiochip_remove(&lg->chip); 448 err = gpiochip_remove(&lg->chip);
448 if (err) 449 if (err)
449 dev_warn(&pdev->dev, "failed to remove gpio_chip.\n"); 450 dev_warn(&pdev->dev, "failed to remove gpio_chip.\n");