ARM: OMAP4+: prminst: provide function to find prm_dev instance offset
authorNishanth Menon <nm@ti.com>
Thu, 22 May 2014 19:53:54 +0000 (14:53 -0500)
committerNishanth Menon <nm@ti.com>
Mon, 8 Sep 2014 15:53:25 +0000 (10:53 -0500)
commite3002d1ae16812ba6c1479a25cce77fd0d175838
treef04508a29363b279d11a8d550f6a83ef42028465
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
ARM: OMAP4+: prminst: provide function to find prm_dev instance offset

PRM device instance can vary depending on SoC. We already handle the
same during reset of the device, However, this is also needed
for other logic instances. So, first abstract this out to a generic
function.

Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
arch/arm/mach-omap2/prminst44xx.c
arch/arm/mach-omap2/prminst44xx.h