diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-05-11 21:54:58 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2014-05-16 00:34:51 -0400 |
commit | d8871cd245ece932ced994457e044d0f68b0aab4 (patch) | |
tree | 13388f9dc727f869a9778f5225609177182ebaf1 /arch/arm/mach-omap2/prm44xx.c | |
parent | 4794208c5b0122e51e3e13830bb707466b638c4c (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.c | 10 |
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 | ||
661 | int __init omap44xx_prm_init(void) | 661 | int __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 | ||
680 | static void __exit omap44xx_prm_exit(void) | 677 | static 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); |