]> git.karo-electronics.de Git - karo-tx-linux.git/commit
irqchip: armada-370-xp: properly request resources
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 9 Aug 2013 20:27:10 +0000 (22:27 +0200)
committerJason Cooper <jason@lakedaemon.net>
Tue, 13 Aug 2013 18:12:58 +0000 (18:12 +0000)
commit7681d1f42a3e6d180c6d0d5e521ab01233af135b
treeaa343272d34304508bea5f6779c8736416a46047
parent6a4324ebf5cf412d55fd1ea259d4dd29fb8f90e8
irqchip: armada-370-xp: properly request resources

Instead of using of_iomap(), we now use of_address_to_resource(),
request_mem_region() and ioremap(). This allows the corresponding I/O
regions to be properly requested and visible in /proc/iomem.

The main motivation for this change is that the introduction of the
MSI support requires us to get the physical address of the main
interrupt controller registers, so we will need the corresponding
'struct resource' anyway.

We also take this opportunity to change a panic() to BUG_ON(), in
order to be consistent with the rest of the driver.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Daniel Price <daniel.price@gmail.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-armada-370-xp.c