ARM: OMAP2+: PRCM: cleanup some header includes
authorTero Kristo <t-kristo@ti.com>
Mon, 12 May 2014 01:41:50 +0000 (19:41 -0600)
committerPaul Walmsley <paul@pwsan.com>
Fri, 16 May 2014 04:34:48 +0000 (22:34 -0600)
Some of the includes are totally unnecessary, remove some others in
preparation to make the PRCM its own driver.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
[paul@pwsan.com: updated to apply; fixed build error on OMAP2xxx-only configs]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
12 files changed:
arch/arm/mach-omap2/clockdomain.h
arch/arm/mach-omap2/cm33xx.h
arch/arm/mach-omap2/cm44xx.c
arch/arm/mach-omap2/cm_common.c
arch/arm/mach-omap2/cminst44xx.c
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
arch/arm/mach-omap2/powerdomain.c
arch/arm/mach-omap2/powerdomain.h
arch/arm/mach-omap2/prcm-common.h
arch/arm/mach-omap2/prcm_mpu44xx.h
arch/arm/mach-omap2/prm2xxx_3xxx.c
arch/arm/mach-omap2/prm33xx.c

index f17f00697cc054df682006d167264a43c959242d..82c37b1becc4a30d1345e41d5ef3f57cef6961cd 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "powerdomain.h"
 #include "clock.h"
-#include "omap_hwmod.h"
 
 /*
  * Clockdomain flags
@@ -98,6 +97,8 @@ struct clkdm_dep {
 /* Possible flags for struct clockdomain._flags */
 #define _CLKDM_FLAG_HWSUP_ENABLED              BIT(0)
 
+struct omap_hwmod;
+
 /**
  * struct clockdomain - OMAP clockdomain
  * @name: clockdomain name
index cfb8891b0c0ec9ed5cac6cf8e8dc5bdb58377cb3..15a778ce77070e2432aafc2cb2dea3fca9f490d9 100644 (file)
 #ifndef __ARCH_ARM_MACH_OMAP2_CM_33XX_H
 #define __ARCH_ARM_MACH_OMAP2_CM_33XX_H
 
-#include "common.h"
-
 #include "cm.h"
 #include "cm-regbits-33xx.h"
-#include "iomap.h"
 
 /* CM base address */
 #define AM33XX_CM_BASE         0x44e00000
index 5627072d4d865a563d1e1e8c371eb770c619dfac..37ba6e8f95050f0b1143ae159339bbf78520ecd6 100644 (file)
@@ -18,8 +18,6 @@
 #include <linux/err.h>
 #include <linux/io.h>
 
-#include "iomap.h"
-#include "common.h"
 #include "cm.h"
 #include "cm1_44xx.h"
 #include "cm2_44xx.h"
index 40b3b5a844584bdd8f35d830f6781a6e3e2a7b49..8f6c4710877e073e2d4b8a5c1158b8cee62f5fff 100644 (file)
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/errno.h>
+#include <linux/bug.h>
 
 #include "cm2xxx.h"
 #include "cm3xxx.h"
 #include "cm44xx.h"
-#include "common.h"
 
 /*
  * cm_ll_data: function pointers to SoC-specific implementations of
index f5c4731b6f06cc3a6c10e6a0d52840ae53bd1765..434b52af0364a7429ccc87d468aa8040e6135f13 100644 (file)
@@ -21,8 +21,6 @@
 #include <linux/err.h>
 #include <linux/io.h>
 
-#include "iomap.h"
-#include "common.h"
 #include "clockdomain.h"
 #include "cm.h"
 #include "cm1_44xx.h"
index 0f178623e7da364cb45c3b98522586c9ebe55f5b..a579b89ce9b733a425e5ad9719ed2056783afbba 100644 (file)
@@ -24,6 +24,7 @@
 #include "prm33xx.h"
 #include "omap_hwmod_33xx_43xx_common_data.h"
 #include "prcm43xx.h"
+#include "common.h"
 
 #define CLKCTRL(oh, clkctrl) ((oh).prcm.omap4.clkctrl_offs = (clkctrl))
 #define RSTCTRL(oh, rstctrl) ((oh).prcm.omap4.rstctrl_offs = (rstctrl))
index 93a2a6e4260f46c6b1580d7dbf50188dbc7154a3..faebd5f076af13b1376be167fbd8227a02d3f444 100644 (file)
@@ -32,6 +32,7 @@
 
 #include "powerdomain.h"
 #include "clockdomain.h"
+#include "voltage.h"
 
 #include "soc.h"
 #include "pm.h"
index da5a59ae77b6d0f5b752ebf0be3ae950d71acb49..f4727117f6cc20908a29899368c46431cda1d790 100644 (file)
@@ -21,8 +21,6 @@
 #include <linux/list.h>
 #include <linux/spinlock.h>
 
-#include "voltage.h"
-
 /* Powerdomain basic power states */
 #define PWRDM_POWER_OFF                0x0
 #define PWRDM_POWER_RET                0x1
@@ -75,6 +73,7 @@
 
 struct clockdomain;
 struct powerdomain;
+struct voltagedomain;
 
 /**
  * struct powerdomain - OMAP powerdomain
index e982598386a53a75252312f1ef2ad08c139fa1d0..ee2384a983bc708f29bc0d9b20b58180d7df00c9 100644 (file)
 #define MAX_IOPAD_LATCH_TIME                   100
 # ifndef __ASSEMBLER__
 
+#include <linux/delay.h>
+
 /**
  * omap_test_timeout - busy-loop, testing a condition
  * @cond: condition to test until it evaluates to true
index 059bd4f4903552f00b5185bb5b57f95a067b81b9..ac9cb4550239e742b2c6ae9d0cfb62545ed9fe3c 100644 (file)
@@ -26,7 +26,6 @@
 #define __ARCH_ARM_MACH_OMAP2_PRCM_MPU44XX_H
 
 #include "prcm_mpu_44xx_54xx.h"
-#include "common.h"
 
 #define OMAP4430_PRCM_MPU_BASE                 0x48243000
 
index 947f6adfed0c91be9df6d517ee41c2d40a477d21..c13b4e293ffaeb3ac89b24baead5a1d2da8adf4c 100644 (file)
@@ -16,7 +16,6 @@
 #include <linux/err.h>
 #include <linux/io.h>
 
-#include "common.h"
 #include "powerdomain.h"
 #include "prm2xxx_3xxx.h"
 #include "prm-regbits-24xx.h"
index 72044073774419e6fdc3da5345c6eff625a68cbb..0660105366e34cd7d13ae7a22774c7a4c9913f3d 100644 (file)
@@ -19,7 +19,6 @@
 #include <linux/err.h>
 #include <linux/io.h>
 
-#include "common.h"
 #include "powerdomain.h"
 #include "prm33xx.h"
 #include "prm-regbits-33xx.h"