diff options
author | Mark Brown <broonie@kernel.org> | 2019-08-12 14:10:40 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-08-12 14:10:40 +0100 |
commit | 0161b8716465a93db726147e12f2514ba356c271 (patch) | |
tree | f7cb18da499ba2d090eabad9f8ff76dcce234598 | |
parent | d45331b00ddb179e291766617259261c112db872 (diff) | |
parent | fba5b1e9ab527bd46bc529370d52a7b2b552dce1 (diff) |
Merge branch 'regmap-5.3' into regmap-linus
-rw-r--r-- | drivers/base/regmap/regmap-irq.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/base/regmap/regmap-irq.c b/drivers/base/regmap/regmap-irq.c index c9dc70ceca5f..3d64c9331a82 100644 --- a/drivers/base/regmap/regmap-irq.c +++ b/drivers/base/regmap/regmap-irq.c @@ -370,7 +370,6 @@ static irqreturn_t regmap_irq_thread(int irq, void *d) if (ret < 0) { dev_err(map->dev, "IRQ thread failed to resume: %d\n", ret); - pm_runtime_put(map->dev); goto exit; } } @@ -425,8 +424,6 @@ static irqreturn_t regmap_irq_thread(int irq, void *d) dev_err(map->dev, "Failed to read IRQ status %d\n", ret); - if (chip->runtime_pm) - pm_runtime_put(map->dev); goto exit; } } @@ -478,8 +475,6 @@ static irqreturn_t regmap_irq_thread(int irq, void *d) dev_err(map->dev, "Failed to read IRQ status: %d\n", ret); - if (chip->runtime_pm) - pm_runtime_put(map->dev); goto exit; } } @@ -513,10 +508,10 @@ static irqreturn_t regmap_irq_thread(int irq, void *d) } } +exit: if (chip->runtime_pm) pm_runtime_put(map->dev); -exit: if (chip->handle_post_irq) chip->handle_post_irq(chip->irq_drv_data); |