diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-03-04 18:19:03 +0200 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2014-05-15 22:34:25 -0600 |
commit | 7af1363742e0e2752e90d5de2ddb9c48665fc567 (patch) | |
tree | 5c552ea6a09b734fe4e00cd98e9f6cd4f979aade /arch/arm/mach-omap2/cm3xxx.c | |
parent | 250e27ee950bf67ceeb812eb4c8f2fea58d3e2b6 (diff) | |
download | talos-obmc-linux-7af1363742e0e2752e90d5de2ddb9c48665fc567.tar.gz talos-obmc-linux-7af1363742e0e2752e90d5de2ddb9c48665fc567.zip |
ARM: OMAP2/3: CM: remove some external dependencies
Done in preparation to move the CM driver to its own driver folder.
These drivers will not have access to functionality under mach-omap2 anymore.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/cm3xxx.c')
-rw-r--r-- | arch/arm/mach-omap2/cm3xxx.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/mach-omap2/cm3xxx.c b/arch/arm/mach-omap2/cm3xxx.c index 60c2c9f9438a..129a4e7f6ef5 100644 --- a/arch/arm/mach-omap2/cm3xxx.c +++ b/arch/arm/mach-omap2/cm3xxx.c @@ -18,9 +18,6 @@ #include <linux/err.h> #include <linux/io.h> -#include "soc.h" -#include "iomap.h" -#include "common.h" #include "prm2xxx_3xxx.h" #include "cm.h" #include "cm3xxx.h" @@ -673,19 +670,11 @@ static struct cm_ll_data omap3xxx_cm_ll_data = { int __init omap3xxx_cm_init(void) { - if (!cpu_is_omap34xx()) - return 0; - return cm_register(&omap3xxx_cm_ll_data); } static void __exit omap3xxx_cm_exit(void) { - if (!cpu_is_omap34xx()) - return; - - /* Should never happen */ - WARN(cm_unregister(&omap3xxx_cm_ll_data), - "%s: cm_ll_data function pointer mismatch\n", __func__); + cm_unregister(&omap3xxx_cm_ll_data); } __exitcall(omap3xxx_cm_exit); |