projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c9fc10
)
Revert "gpio: extraxfs: fix returnvar.cocci warnings"
author
Linus Walleij
<linus.walleij@linaro.org>
Mon, 31 Aug 2015 06:56:04 +0000
(08:56 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 31 Aug 2015 06:56:04 +0000
(08:56 +0200)
This reverts commit
5e22ec019823b0204720e1ad9a5866c638332b3a
.
drivers/gpio/gpio-etraxfs.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-etraxfs.c
b/drivers/gpio/gpio-etraxfs.c
index ca33bda8ec555a37ed7cd729133383cb9dd71e12..2ffcd9fdd1f2f7d3df917aa0324a07e3f23b17c8 100644
(file)
--- a/
drivers/gpio/gpio-etraxfs.c
+++ b/
drivers/gpio/gpio-etraxfs.c
@@
-292,6
+292,7
@@
static int etraxfs_gpio_irq_request_resources(struct irq_data *d)
struct etraxfs_gpio_chip *chip = irq_data_get_irq_chip_data(d);
struct etraxfs_gpio_block *block = chip->block;
unsigned int grpirq = etraxfs_gpio_to_group_irq(d->hwirq);
+ int ret = -EBUSY;
spin_lock(&block->lock);
if (block->group[grpirq])
@@
-313,7
+314,7
@@
static int etraxfs_gpio_irq_request_resources(struct irq_data *d)
out:
spin_unlock(&block->lock);
- return
-EBUSY
;
+ return
ret
;
}
static void etraxfs_gpio_irq_release_resources(struct irq_data *d)