From 6075a8b2b6c32ddcb99b85189ae41ab2903e560f Mon Sep 17 00:00:00 2001 From: Grygorii Strashko Date: Wed, 18 Dec 2013 12:07:51 +0200 Subject: [PATCH] gpio: davinci: don't create irq_domain in case of unbanked irqs The system may crash if: - there are more than 1 banks - unbanked irqs are enabled - someone will call gpio_to_irq() for GPIO from bank2 or above Hence, fix it by not creating irq_domain if unbanked irqs are enabled and correct gpio_to_irq_banked() to handle this properly. Cc: Linus Walleij Cc: Alexandre Courbot Cc: Sekhar Nori Acked-by: Santosh Shilimkar Acked-by: Linus Walleij Acked-by: Lad, Prabhakar Signed-off-by: Grygorii Strashko Signed-off-by: Sekhar Nori --- Reading git-format-patch failed