]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio/omap: free irq domain in probe() failure paths
authorJon Hunter <jon-hunter@ti.com>
Thu, 4 Apr 2013 20:16:12 +0000 (15:16 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 10 Apr 2013 21:41:16 +0000 (23:41 +0200)
commit879fe32438be9ff1ea2cf44e39e11b58206a76b2
treed9a45c4e94551ebb068c81054c445ba6ec71af82
parent2b78f1e1389aef263071b9edf41c0980b092e601
gpio/omap: free irq domain in probe() failure paths

Currently the IRQ domain is not freed once allocated, in the case where
omap_gpio_probe() fails. Therefore, ensure we free the domain if the
probe does fail. Furthermore, the local variable "ret" is not needed
and so remove this.

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c