]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: gpio-mxc: gpio_set_wake_irq() use proper return values
authorPhilipp Rosenberger <p.rosenberger@linutronix.de>
Wed, 12 Jul 2017 08:36:40 +0000 (10:36 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:01:12 +0000 (15:01 +0200)
commit77a4d757195fcf40f5cc0eaa1b6f5eb9a4d23851
tree1c89ea6639180e8fdaaefa672b55536561ea3489
parentdbd1dad2ab8ffca57e0aa386df0d7ec621c26ca8
gpio: gpio-mxc: gpio_set_wake_irq() use proper return values

Errors from enable_irq_wake() in gpio_set_wake_irq() were silently ignored.
Thus led to the problem that gpio_set_wake_irq() always returned
successfully, even if enable_irq_wake() returned an error.

Signed-off-by: Philipp Rosenberger <p.rosenberger@linutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mxc.c