irqchip/mmp: Do not use of_address_to_resource() to get mux regs
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 22 Aug 2019 09:26:29 +0000 (11:26 +0200)
committerMarc Zyngier <maz@kernel.org>
Fri, 30 Aug 2019 14:23:30 +0000 (15:23 +0100)
commitd6a95280ba169c3a3d632d983cc6977c544a06e8
treeabc6d34a7177d902b48e1a375846a6e09a49f063
parentb2fb4b77994abc1107c35547f3e123dce8e9f67d
irqchip/mmp: Do not use of_address_to_resource() to get mux regs

The "regs" property of the "mrvl,mmp2-mux-intc" devices are silly. They
are offsets from intc's base, not addresses on the parent bus. At this
point it probably can't be fixed.

On an OLPC XO-1.75 machine, the muxes are children of the intc, not the
axi bus, and thus of_address_to_resource() won't work. We should treat
the values as mere integers as opposed to bus addresses.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Link: https://lore.kernel.org/r/20190822092643.593488-7-lkundrak@v3.sk
drivers/irqchip/irq-mmp.c