diff options
| author | Andy Shevchenko <[email protected]> | 2018-07-30 12:38:36 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2018-08-06 21:46:55 +0000 |
| commit | d124339da78d1f3b97d1dfa01dc4b52fca2f28e0 (patch) | |
| tree | 3bd8c093b54af540a3e34d4734e67d2630a6466c | |
| parent | gpio: xgene-sb: Don't shadow error code of gpiochip_lock_as_irq() (diff) | |
| download | kernel-d124339da78d1f3b97d1dfa01dc4b52fca2f28e0.tar.gz kernel-d124339da78d1f3b97d1dfa01dc4b52fca2f28e0.zip | |
gpio: uniphier: Bail out on gpiochip_lock_as_irq() error
gpiochip_lock_as_irq() may return a few error codes,
bail out if it fails with corresponding returned code.
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Masahiro Yamada <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
| -rw-r--r-- | drivers/gpio/gpio-uniphier.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-uniphier.c b/drivers/gpio/gpio-uniphier.c index d3cf9502e7e7..ed2badecc050 100644 --- a/drivers/gpio/gpio-uniphier.c +++ b/drivers/gpio/gpio-uniphier.c @@ -306,8 +306,7 @@ static int uniphier_gpio_irq_domain_activate(struct irq_domain *domain, struct uniphier_gpio_priv *priv = domain->host_data; struct gpio_chip *chip = &priv->chip; - gpiochip_lock_as_irq(chip, data->hwirq + UNIPHIER_GPIO_IRQ_OFFSET); - return 0; + return gpiochip_lock_as_irq(chip, data->hwirq + UNIPHIER_GPIO_IRQ_OFFSET); } static void uniphier_gpio_irq_domain_deactivate(struct irq_domain *domain, |
