Skip to contentSkip to conversation

cell: Convert #include of asm/of_{platform, device}.h into linux/of_{platform, device}.h.

PATCH Superseded Jon Loeliger 3 participants 5 messages Nov 12, 2007 – Nov 14, 2007

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cell: Convert #include of asm/of_{platform, device}.h into linux/of_{platform, device}.h.

From: Jon Loeliger <[email protected]>

---
 arch/powerpc/platforms/cell/cbe_cpufreq.c     |    3 ++-
 arch/powerpc/platforms/cell/cbe_cpufreq_pmi.c |    3 ++-
 arch/powerpc/platforms/cell/cbe_regs.c        |    4 ++--
 arch/powerpc/platforms/cell/iommu.c           |    2 +-
 arch/powerpc/platforms/cell/setup.c           |    2 +-
 5 files changed, 8 insertions(+), 6 deletions(-)
arch/powerpc/platforms/cell/cbe_cpufreq.c +2 -1
index 13d5a87..ec7c8f4 100644
@@ -21,8 +21,9 @@
  */
 
 #include <linux/cpufreq.h>
+#include <linux/of_platform.h>
+
 #include <asm/machdep.h>
-#include <asm/of_platform.h>
 #include <asm/prom.h>
 #include <asm/cell-regs.h>
 #include "cbe_cpufreq.h"
arch/powerpc/platforms/cell/cbe_cpufreq_pmi.c +2 -1
index 6a2c1b0..69288f6 100644
@@ -23,7 +23,8 @@
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/timer.h>
-#include <asm/of_platform.h>
+#include <linux/of_platform.h>
+
 #include <asm/processor.h>
 #include <asm/prom.h>
 #include <asm/pmi.h>
arch/powerpc/platforms/cell/cbe_regs.c +2 -2
index 16a9b07..a839c6c 100644
@@ -9,13 +9,13 @@
 #include <linux/percpu.h>
 #include <linux/types.h>
 #include <linux/module.h>
+#include <linux/of_device.h>
+#include <linux/of_platform.h>
 
 #include <asm/io.h>
 #include <asm/pgtable.h>
 #include <asm/prom.h>
 #include <asm/ptrace.h>
-#include <asm/of_device.h>
-#include <asm/of_platform.h>
 #include <asm/cell-regs.h>
 
 /*
arch/powerpc/platforms/cell/iommu.c +1 -1
index faabc3f..179ba2e 100644
@@ -26,13 +26,13 @@
 #include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/notifier.h>
+#include <linux/of_platform.h>
 
 #include <asm/prom.h>
 #include <asm/iommu.h>
 #include <asm/machdep.h>
 #include <asm/pci-bridge.h>
 #include <asm/udbg.h>
-#include <asm/of_platform.h>
 #include <asm/lmb.h>
 #include <asm/cell-regs.h>
 
arch/powerpc/platforms/cell/setup.c +1 -1
index 98e7ef8..4f6347c 100644
@@ -30,6 +30,7 @@
 #include <linux/console.h>
 #include <linux/mutex.h>
 #include <linux/memory_hotplug.h>
+#include <linux/of_platform.h>
 
 #include <asm/mmu.h>
 #include <asm/processor.h>
@@ -51,7 +52,6 @@
 #include <asm/spu_priv1.h>
 #include <asm/udbg.h>
 #include <asm/mpic.h>
-#include <asm/of_platform.h>
 #include <asm/cell-regs.h>
 
 #include "interrupt.h"
Signature · 1 line
1.5.3
#2 lore raw

So, like, the other day Stephen Rothwell mumbled:

Quoted 4 lines

Hi Jon,

Thanks for this.

Most welcome.

I'm assuming I can chip away at _all_ of these, including the ones in the drivers/ directories as well.

I haven't a clue who will really pick all these up. We could arrange for Paul to grab the arch/powerpc. But the rest? Mr Morton perhaps?

jdl

#3 lore raw
Quoted 3 lines · On Tue, 13 Nov 2007 07:48:50 -0600 Jon Loeliger <[email protected]> wrote:

I'm assuming I can chip away at _all_ of these, including the ones in the drivers/ directories as well.

Knock yourself out! :-)

Quoted 3 lines

I haven't a clue who will really pick all these up. We could arrange for Paul to grab the arch/powerpc. But the rest? Mr Morton perhaps?

Just keep in mind that some of these changes may affect Sparc and Sparc64, so Dave Miller is you man for those.

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/