ARM: OMAP: PRM: Remove hardcoding of IRQENABLE_MPU_2 and IRQSTATUS_MPU_2 register...
authorKeerthy <j-keerthy@ti.com>
Wed, 8 Jul 2015 05:42:26 +0000 (11:12 +0530)
committerPaul Walmsley <paul@pwsan.com>
Thu, 23 Jul 2015 12:08:19 +0000 (06:08 -0600)
commit8d4be7d8bf04f93cfb1512a078bd276efc270793
treee039b494201642d8e127b341baa764c7548004e6
parent6e487001c5b0939e6083327432565559d8aab6fc
ARM: OMAP: PRM: Remove hardcoding of IRQENABLE_MPU_2 and IRQSTATUS_MPU_2 register offsets

The register offsets of IRQENABLE_MPU_2 and IRQSTATUS_MPU_2 are hardcoded.
This makes it difficult to reuse the code for SoCs like AM437x that have
a single instance of IRQENABLE_MPU and IRQSTATUS_MPU registers.
Hence handling the case using offset of 4 to accommodate single set of IRQ*
registers generically.

Signed-off-by: Keerthy <j-keerthy@ti.com>
[paul@pwsan.com: fixed whitespace alignment problems reported by checkpatch.pl]
Reviewed-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/prm44xx.c