]> git.karo-electronics.de Git - karo-tx-linux.git/commit
gpio: em: Use irq_domain_add_simple() to fix runtime error
authorMagnus Damm <damm@opensource.se>
Tue, 12 Feb 2013 15:56:13 +0000 (00:56 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 14 Feb 2013 16:44:37 +0000 (17:44 +0100)
commitc7886b18273b07042e25e8d3ba5c983837b84123
treea8e64b71711b7a87f857b998329f6f343c8e2de2
parente9a65bb63e5fe45b9d0ecd1983749786858da14d
gpio: em: Use irq_domain_add_simple() to fix runtime error

Adjust the gpio-em.c driver to reconsider the pdata->irq_base
variable. Non-DT board code like for instance board-kzm9d.c
needs to operate of a static IRQ range for platform devices.

So this patch is updating the code to make use of the function
irq_domain_add_simple() instead of irq_domain_add_linear().

Fixes a EMEV2 / KZM9D runtime error caused by the following commit:
7385500 gpio/em: convert to linear IRQ domain

Cc: stable@kernel.org
Signed-off-by: Magnus Damm <damm@opensource.se>
Tested-by: Simon Horman <horms+renesas@verge.net.au>
Reported-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-em.c