ARM: 7515/1: integrator: check PL010 base address from resource
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 6 Sep 2012 08:07:27 +0000 (09:07 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 16 Sep 2012 23:25:42 +0000 (00:25 +0100)
commit2c88543b953581f70f05bf133a1b8f196c48ef23
tree26a2499bbaec3a409df2653a1115572fc44ba6bf
parent9bf26a180578b92890ed77890d4e9e9807adcda3
ARM: 7515/1: integrator: check PL010 base address from resource

In the PL010 UART callback a comparison against the location of the
statically allocated PL010 device is done to figure out which UART
is doing the callback. This does not play well with dynamic devices
such as in device tree, so let's check the base address of the
memory resource inside the amba_device instead.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-integrator/core.c