]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
gpio: omap: add missed spin_unlock_irqrestore in omap_gpio_irq_type
authorGrygorii Strashko <grygorii.strashko@linaro.org>
Wed, 24 Jun 2015 14:54:17 +0000 (17:54 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Jul 2015 08:35:56 +0000 (10:35 +0200)
commit977bd8a94c40851a843e9186b9eb823bdfa5ace2
tree032da04d9fbfbbf28f417e1b1efeca2deec8de19
parent2252607d327d5219a6331b50e6ec266d56402be0
gpio: omap: add missed spin_unlock_irqrestore in omap_gpio_irq_type

Add missed spin_unlock_irqrestore in omap_gpio_irq_type when
omap_set_gpio_triggering() is failed.

It fixes static checker warning:

drivers/gpio/gpio-omap.c:523 omap_gpio_irq_type()
warn: inconsistent returns 'spin_lock:&bank->lock'.

This fixes commit:
1562e4618ded ('gpio: omap: fix error handling in omap_gpio_irq_type')

Reported-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Grygorii Strashko <grygorii.strashko@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c