ARM: OMAP4+: prminst: provide function to find prm_dev instance offset
authorNishanth Menon <nm@ti.com>
Fri, 22 Aug 2014 13:51:48 +0000 (08:51 -0500)
committerTero Kristo <t-kristo@ti.com>
Fri, 22 Aug 2014 15:38:22 +0000 (18:38 +0300)
commitf73fd811bb496127e457794195456d8ecb6cd7e7
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>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
arch/arm/mach-omap2/prminst44xx.c
arch/arm/mach-omap2/prminst44xx.h