Skip to contentSkip to conversation

gpio-lynxpoint: Fix warning about unbalanced pm_runtime_enable

PATCH In review Mathias Nyman 2 participants 2 messages Aug 12, 2013 – Aug 16, 2013 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 drivers/gpio/gpio-lynxpoint.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/gpio/gpio-lynxpoint.c +1 -0
index 761c470..2d9ca60 100644
@@ -444,6 +444,7 @@ static int lp_gpio_remove(struct platform_device *pdev)
 {
 	struct lp_gpio *lg = platform_get_drvdata(pdev);
 	int err;
+	pm_runtime_disable(&pdev->dev);
 	err = gpiochip_remove(&lg->chip);
 	if (err)
 		dev_warn(&pdev->dev, "failed to remove gpio_chip.\n");
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 4 lines · Mathias Nyman

Missing pm_runtime_disable call in driver remove path caused an unbalanaced pm_runtime_enable warning when driver was reloaded

Patch applied, thanks!

Yours,
Linus Walleij