Commit 3a7b0238 authored by Magnus Damm's avatar Magnus Damm Committed by Greg Kroah-Hartman
Browse files

gpio: em: Use irq_domain_add_simple() to fix runtime error



commit c7886b18 upstream.

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:
7385500a gpio/em: convert to linear IRQ domain

Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
Tested-by: default avatarSimon Horman <horms+renesas@verge.net.au>
Reported-by: default avatarSimon Horman <horms+renesas@verge.net.au>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2a4315c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment