aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/prm44xx.c
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2014-05-11 21:54:58 -0400
committerPaul Walmsley <paul@pwsan.com>2014-05-16 00:34:51 -0400
commitd8871cd245ece932ced994457e044d0f68b0aab4 (patch)
tree13388f9dc727f869a9778f5225609177182ebaf1 /arch/arm/mach-omap2/prm44xx.c
parent4794208c5b0122e51e3e13830bb707466b638c4c (diff)
ARM: OMAP2+: PRM: remove unnecessary cpu_is_XXX calls from prm_init / exit
Done in preparation to make PRM its own driver, as the cpu_is_XXX calls are not available outside mach-omap2 folder. The init functions are called only from cpu specific init chain, and thus don't need to double check against cpu type. The exit calls check against the data provided during init-time registration and thus don't need cpu check either. Signed-off-by: Tero Kristo <t-kristo@ti.com> [paul@pwsan.com: updated to apply] Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/prm44xx.c')
-rw-r--r--arch/arm/mach-omap2/prm44xx.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c
index 03a603476cfc..15171890f805 100644
--- a/arch/arm/mach-omap2/prm44xx.c
+++ b/arch/arm/mach-omap2/prm44xx.c
@@ -660,9 +660,6 @@ static struct prm_ll_data omap44xx_prm_ll_data = {
660 660
661int __init omap44xx_prm_init(void) 661int __init omap44xx_prm_init(void)
662{ 662{
663 if (!cpu_is_omap44xx() && !soc_is_omap54xx() && !soc_is_dra7xx())
664 return 0;
665
666 return prm_register(&omap44xx_prm_ll_data); 663 return prm_register(&omap44xx_prm_ll_data);
667} 664}
668 665
@@ -679,11 +676,6 @@ omap_subsys_initcall(omap44xx_prm_late_init);
679 676
680static void __exit omap44xx_prm_exit(void) 677static void __exit omap44xx_prm_exit(void)
681{ 678{
682 if (!cpu_is_omap44xx()) 679 prm_unregister(&omap44xx_prm_ll_data);
683 return;
684
685 /* Should never happen */
686 WARN(prm_unregister(&omap44xx_prm_ll_data),
687 "%s: prm_ll_data function pointer mismatch\n", __func__);
688} 680}
689__exitcall(omap44xx_prm_exit); 681__exitcall(omap44xx_prm_exit);