diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-09-08 11:29:43 +0300 |
---|---|---|
committer | Tero Kristo <t-kristo@ti.com> | 2015-03-31 21:26:44 +0300 |
commit | 48e0c1148d18de677f1b2aec179f36fb7c1e3839 (patch) | |
tree | a99f48711d42fe91fd81ef55d5ced8352c4bdc2f /arch/arm/mach-omap2/prm44xx.c | |
parent | ab7b2ffcf576a49b51c240dcd68ca4b7cd60b84d (diff) |
ARM: OMAP4+: PRM: determine prm_device_inst based on DT compatibility
PRM device instance offset is now provided through the prm_init_data.
This gets rid of some cpu_is_X / soc_is_X calls from PRM core code,
preparing for PRM to be its own separate driver.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/prm44xx.c')
-rw-r--r-- | arch/arm/mach-omap2/prm44xx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c index e3f2d313e341..a980d245a0bb 100644 --- a/arch/arm/mach-omap2/prm44xx.c +++ b/arch/arm/mach-omap2/prm44xx.c @@ -713,6 +713,8 @@ int __init omap44xx_prm_init(const struct omap_prcm_init_data *data) if (!soc_is_dra7xx()) prm_features |= PRM_HAS_VOLTAGE; + omap4_prminst_set_prm_dev_inst(data->device_inst_offset); + return prm_register(&omap44xx_prm_ll_data); } |