mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
81e9df2c94
commit
b168386eaf
1 changed files with 1 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue