[PATCH] 4xx; Replace #includes of asm/of_platform.h with linux/of_platform.h.

Subsystems: linux for powerpc (32-bit and 64-bit), linux for powerpc embedded ppc4xx, the rest

STALE6887d

4 messages, 3 authors, 2007-11-06 · open the first message on its own page

[PATCH] 4xx; Replace #includes of asm/of_platform.h with linux/of_platform.h.

From: Jon Loeliger <hidden>
Date: 2007-11-05 21:43:48

From: Jon Loeliger <redacted>

Signed-off-by: Jon Loeliger <redacted>
---
Chip away at some janitor work.

 arch/powerpc/platforms/40x/walnut.c  |    3 ++-
 arch/powerpc/platforms/44x/bamboo.c  |    3 ++-
 arch/powerpc/platforms/44x/ebony.c   |    3 ++-
 arch/powerpc/platforms/44x/sequoia.c |    3 ++-
 4 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/arch/powerpc/platforms/40x/walnut.c b/arch/powerpc/platforms/40x/walnut.c
index eb0c136..ff6db24 100644
--- a/arch/powerpc/platforms/40x/walnut.c
+++ b/arch/powerpc/platforms/40x/walnut.c
@@ -17,12 +17,13 @@
  */
 
 #include <linux/init.h>
+#include <linux/of_platform.h>
+
 #include <asm/machdep.h>
 #include <asm/prom.h>
 #include <asm/udbg.h>
 #include <asm/time.h>
 #include <asm/uic.h>
-#include <asm/of_platform.h>
 
 static struct of_device_id walnut_of_bus[] = {
 	{ .compatible = "ibm,plb3", },
diff --git a/arch/powerpc/platforms/44x/bamboo.c b/arch/powerpc/platforms/44x/bamboo.c
index 470e1a3..be23f11 100644
--- a/arch/powerpc/platforms/44x/bamboo.c
+++ b/arch/powerpc/platforms/44x/bamboo.c
@@ -14,12 +14,13 @@
  * option) any later version.
  */
 #include <linux/init.h>
+#include <linux/of_platform.h>
+
 #include <asm/machdep.h>
 #include <asm/prom.h>
 #include <asm/udbg.h>
 #include <asm/time.h>
 #include <asm/uic.h>
-#include <asm/of_platform.h>
 #include "44x.h"
 
 static struct of_device_id bamboo_of_bus[] = {
diff --git a/arch/powerpc/platforms/44x/ebony.c b/arch/powerpc/platforms/44x/ebony.c
index 40e18fc..6cd3476 100644
--- a/arch/powerpc/platforms/44x/ebony.c
+++ b/arch/powerpc/platforms/44x/ebony.c
@@ -17,12 +17,13 @@
  */
 
 #include <linux/init.h>
+#include <linux/of_platform.h>
+
 #include <asm/machdep.h>
 #include <asm/prom.h>
 #include <asm/udbg.h>
 #include <asm/time.h>
 #include <asm/uic.h>
-#include <asm/of_platform.h>
 
 #include "44x.h"
 
diff --git a/arch/powerpc/platforms/44x/sequoia.c b/arch/powerpc/platforms/44x/sequoia.c
index 30700b3..21a9dd1 100644
--- a/arch/powerpc/platforms/44x/sequoia.c
+++ b/arch/powerpc/platforms/44x/sequoia.c
@@ -14,12 +14,13 @@
  * option) any later version.
  */
 #include <linux/init.h>
+#include <linux/of_platform.h>
+
 #include <asm/machdep.h>
 #include <asm/prom.h>
 #include <asm/udbg.h>
 #include <asm/time.h>
 #include <asm/uic.h>
-#include <asm/of_platform.h>
 #include "44x.h"
 
 static struct of_device_id sequoia_of_bus[] = {
-- 
1.5.3

Re: [PATCH] 4xx; Replace #includes of asm/of_platform.h with linux/of_platform.h.

From: Stephen Rothwell <hidden>
Date: 2007-11-05 22:40:17

On Mon, 05 Nov 2007 15:43:43 -0600 Jon Loeliger [off-list ref] wrote:
From: Jon Loeliger <redacted>

Signed-off-by: Jon Loeliger <redacted>
Acked-by: Stephen Rothwell <redacted>

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

Re: [PATCH] 4xx; Replace #includes of asm/of_platform.h with linux/of_platform.h.

From: Josh Boyer <hidden>
Date: 2007-11-05 23:53:51

On Tue, 6 Nov 2007 09:40:14 +1100
Stephen Rothwell [off-list ref] wrote:
On Mon, 05 Nov 2007 15:43:43 -0600 Jon Loeliger [off-list ref] wrote:
quoted
From: Jon Loeliger <redacted>

Signed-off-by: Jon Loeliger <redacted>
Acked-by: Stephen Rothwell <redacted>
Yeah, this is fine with me too.  But why haven't we put a #warning in
asm/of_platform.h and asm/prom.h?

josh

Re: [PATCH] 4xx; Replace #includes of asm/of_platform.h with linux/of_platform.h.

From: Stephen Rothwell <hidden>
Date: 2007-11-06 01:10:33

On Mon, 5 Nov 2007 17:53:41 -0600 Josh Boyer [off-list ref] wrote:
Yeah, this is fine with me too.  But why haven't we put a #warning in
asm/of_platform.h and asm/prom.h?
Because thee are way to many places to be fixed yet.  And asm/prom.h needs to be explicitly included if you want to use the flattened device tree accessors.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help