Skip to content

Commit

Permalink
powerpc: Remove asm/prom.h from all files that don't need it
Browse files Browse the repository at this point in the history
Several files include asm/prom.h for no reason.

Clean it up.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/7c9b8fda63dcf63e1b28f43e7ebdb95182cbc286.1646767214.git.christophe.leroy@csgroup.eu
  • Loading branch information
chleroy authored and mpe committed May 5, 2022
1 parent 669df99 commit 34fa52e
Show file tree
Hide file tree
Showing 80 changed files with 0 additions and 81 deletions.
1 change: 0 additions & 1 deletion arch/powerpc/kernel/cacheinfo.c
Expand Up @@ -18,7 +18,6 @@
#include <linux/of.h>
#include <linux/percpu.h>
#include <linux/slab.h>
#include <asm/prom.h>
#include <asm/cputhreads.h>
#include <asm/smp.h>

Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kernel/eeh_driver.c
Expand Up @@ -16,7 +16,6 @@
#include <asm/eeh_event.h>
#include <asm/ppc-pci.h>
#include <asm/pci-bridge.h>
#include <asm/prom.h>
#include <asm/rtas.h>

struct eeh_rmv_data {
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kernel/iommu.c
Expand Up @@ -27,7 +27,6 @@
#include <linux/sched.h>
#include <linux/debugfs.h>
#include <asm/io.h>
#include <asm/prom.h>
#include <asm/iommu.h>
#include <asm/pci-bridge.h>
#include <asm/machdep.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kernel/irq.c
Expand Up @@ -58,7 +58,6 @@
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/cache.h>
#include <asm/prom.h>
#include <asm/ptrace.h>
#include <asm/machdep.h>
#include <asm/udbg.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kernel/pci_32.c
Expand Up @@ -21,7 +21,6 @@

#include <asm/processor.h>
#include <asm/io.h>
#include <asm/prom.h>
#include <asm/sections.h>
#include <asm/pci-bridge.h>
#include <asm/ppc-pci.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kernel/process.c
Expand Up @@ -43,7 +43,6 @@
#include <asm/io.h>
#include <asm/processor.h>
#include <asm/mmu.h>
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/time.h>
#include <asm/runlatch.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kernel/prom.c
Expand Up @@ -31,7 +31,6 @@
#include <linux/cpu.h>
#include <linux/pgtable.h>

#include <asm/prom.h>
#include <asm/rtas.h>
#include <asm/page.h>
#include <asm/processor.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kernel/prom_parse.c
Expand Up @@ -6,7 +6,6 @@
#include <linux/ioport.h>
#include <linux/etherdevice.h>
#include <linux/of_address.h>
#include <asm/prom.h>

void of_parse_dma_window(struct device_node *dn, const __be32 *dma_window,
unsigned long *busno, unsigned long *phys,
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kernel/rtas-rtc.c
Expand Up @@ -6,7 +6,6 @@
#include <linux/rtc.h>
#include <linux/delay.h>
#include <linux/ratelimit.h>
#include <asm/prom.h>
#include <asm/rtas.h>
#include <asm/time.h>

Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kernel/rtasd.c
Expand Up @@ -22,7 +22,6 @@
#include <linux/uaccess.h>
#include <asm/io.h>
#include <asm/rtas.h>
#include <asm/prom.h>
#include <asm/nvram.h>
#include <linux/atomic.h>
#include <asm/machdep.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kernel/smp.c
Expand Up @@ -43,7 +43,6 @@
#include <asm/kvm_ppc.h>
#include <asm/dbell.h>
#include <asm/page.h>
#include <asm/prom.h>
#include <asm/smp.h>
#include <asm/time.h>
#include <asm/machdep.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kernel/vdso.c
Expand Up @@ -25,7 +25,6 @@
#include <asm/processor.h>
#include <asm/mmu.h>
#include <asm/mmu_context.h>
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/cputable.h>
#include <asm/sections.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kexec/core.c
Expand Up @@ -18,7 +18,6 @@
#include <asm/kdump.h>
#include <asm/machdep.h>
#include <asm/pgalloc.h>
#include <asm/prom.h>
#include <asm/sections.h>

void machine_kexec_mask_interrupts(void) {
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kexec/crash.c
Expand Up @@ -20,7 +20,6 @@
#include <asm/processor.h>
#include <asm/machdep.h>
#include <asm/kexec.h>
#include <asm/prom.h>
#include <asm/smp.h>
#include <asm/setjmp.h>
#include <asm/debug.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/mm/book3s32/mmu.c
Expand Up @@ -23,7 +23,6 @@
#include <linux/highmem.h>
#include <linux/memblock.h>

#include <asm/prom.h>
#include <asm/mmu.h>
#include <asm/machdep.h>
#include <asm/code-patching.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/mm/init_32.c
Expand Up @@ -29,7 +29,6 @@
#include <linux/slab.h>
#include <linux/hugetlb.h>

#include <asm/prom.h>
#include <asm/io.h>
#include <asm/mmu.h>
#include <asm/smp.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/mm/nohash/40x.c
Expand Up @@ -32,7 +32,6 @@
#include <linux/highmem.h>
#include <linux/memblock.h>

#include <asm/prom.h>
#include <asm/io.h>
#include <asm/mmu_context.h>
#include <asm/mmu.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/mm/nohash/fsl_book3e.c
Expand Up @@ -37,7 +37,6 @@
#include <linux/highmem.h>
#include <linux/memblock.h>

#include <asm/prom.h>
#include <asm/io.h>
#include <asm/mmu_context.h>
#include <asm/mmu.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/mm/nohash/kaslr_booke.c
Expand Up @@ -15,7 +15,6 @@
#include <linux/libfdt.h>
#include <linux/crash_core.h>
#include <asm/cacheflush.h>
#include <asm/prom.h>
#include <asm/kdump.h>
#include <mm/mmu_decl.h>
#include <generated/compile.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/mm/numa.c
Expand Up @@ -26,7 +26,6 @@
#include <linux/slab.h>
#include <asm/cputhreads.h>
#include <asm/sparsemem.h>
#include <asm/prom.h>
#include <asm/smp.h>
#include <asm/topology.h>
#include <asm/firmware.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/mm/pgtable_64.c
Expand Up @@ -32,7 +32,6 @@
#include <linux/hugetlb.h>

#include <asm/page.h>
#include <asm/prom.h>
#include <asm/mmu_context.h>
#include <asm/mmu.h>
#include <asm/smp.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/40x/ppc40x_simple.c
Expand Up @@ -13,7 +13,6 @@
#include <asm/machdep.h>
#include <asm/pci-bridge.h>
#include <asm/ppc4xx.h>
#include <asm/prom.h>
#include <asm/time.h>
#include <asm/udbg.h>
#include <asm/uic.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/44x/ppc44x_simple.c
Expand Up @@ -13,7 +13,6 @@
#include <asm/machdep.h>
#include <asm/pci-bridge.h>
#include <asm/ppc4xx.h>
#include <asm/prom.h>
#include <asm/time.h>
#include <asm/udbg.h>
#include <asm/uic.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/44x/sam440ep.c
Expand Up @@ -17,7 +17,6 @@
#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>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/512x/mpc5121_ads.c
Expand Up @@ -14,7 +14,6 @@

#include <asm/machdep.h>
#include <asm/ipic.h>
#include <asm/prom.h>
#include <asm/time.h>

#include <sysdev/fsl_pci.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/512x/mpc512x_generic.c
Expand Up @@ -13,7 +13,6 @@

#include <asm/machdep.h>
#include <asm/ipic.h>
#include <asm/prom.h>
#include <asm/time.h>

#include "mpc512x.h"
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/52xx/efika.c
Expand Up @@ -14,7 +14,6 @@
#include <linux/pci.h>
#include <linux/of.h>
#include <asm/dma.h>
#include <asm/prom.h>
#include <asm/time.h>
#include <asm/machdep.h>
#include <asm/rtas.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/52xx/lite5200.c
Expand Up @@ -21,7 +21,6 @@
#include <asm/time.h>
#include <asm/io.h>
#include <asm/machdep.h>
#include <asm/prom.h>
#include <asm/mpc52xx.h>

/* ************************************************************************
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/82xx/ep8248e.c
Expand Up @@ -20,7 +20,6 @@
#include <asm/machdep.h>
#include <asm/time.h>
#include <asm/mpc8260.h>
#include <asm/prom.h>

#include <sysdev/fsl_soc.h>
#include <sysdev/cpm2_pic.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/82xx/km82xx.c
Expand Up @@ -20,7 +20,6 @@
#include <asm/machdep.h>
#include <linux/time.h>
#include <asm/mpc8260.h>
#include <asm/prom.h>

#include <sysdev/fsl_soc.h>
#include <sysdev/cpm2_pic.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/83xx/km83xx.c
Expand Up @@ -29,7 +29,6 @@
#include <asm/machdep.h>
#include <asm/ipic.h>
#include <asm/irq.h>
#include <asm/prom.h>
#include <asm/udbg.h>
#include <sysdev/fsl_soc.h>
#include <sysdev/fsl_pci.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
Expand Up @@ -18,7 +18,6 @@
#include <linux/kthread.h>
#include <linux/property.h>
#include <linux/reboot.h>
#include <asm/prom.h>
#include <asm/machdep.h>

/*
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/83xx/mpc832x_mds.c
Expand Up @@ -28,7 +28,6 @@
#include <asm/machdep.h>
#include <asm/ipic.h>
#include <asm/irq.h>
#include <asm/prom.h>
#include <asm/udbg.h>
#include <sysdev/fsl_soc.h>
#include <sysdev/fsl_pci.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/83xx/mpc834x_itx.c
Expand Up @@ -27,7 +27,6 @@
#include <asm/machdep.h>
#include <asm/ipic.h>
#include <asm/irq.h>
#include <asm/prom.h>
#include <asm/udbg.h>
#include <sysdev/fsl_soc.h>
#include <sysdev/fsl_pci.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/83xx/mpc836x_mds.c
Expand Up @@ -35,7 +35,6 @@
#include <asm/machdep.h>
#include <asm/ipic.h>
#include <asm/irq.h>
#include <asm/prom.h>
#include <asm/udbg.h>
#include <sysdev/fsl_soc.h>
#include <sysdev/fsl_pci.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/83xx/mpc836x_rdk.c
Expand Up @@ -12,7 +12,6 @@
#include <linux/pci.h>
#include <linux/of_platform.h>
#include <linux/io.h>
#include <asm/prom.h>
#include <asm/time.h>
#include <asm/ipic.h>
#include <asm/udbg.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/85xx/corenet_generic.c
Expand Up @@ -19,7 +19,6 @@
#include <asm/pci-bridge.h>
#include <asm/ppc-pci.h>
#include <mm/mmu_decl.h>
#include <asm/prom.h>
#include <asm/udbg.h>
#include <asm/mpic.h>
#include <asm/ehv_pic.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/85xx/ksi8560.c
Expand Up @@ -26,7 +26,6 @@
#include <asm/mpic.h>
#include <mm/mmu_decl.h>
#include <asm/udbg.h>
#include <asm/prom.h>

#include <sysdev/fsl_soc.h>
#include <sysdev/fsl_pci.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/85xx/mpc8536_ds.c
Expand Up @@ -18,7 +18,6 @@
#include <asm/machdep.h>
#include <asm/pci-bridge.h>
#include <mm/mmu_decl.h>
#include <asm/prom.h>
#include <asm/udbg.h>
#include <asm/mpic.h>
#include <asm/swiotlb.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/85xx/mpc85xx_mds.c
Expand Up @@ -39,7 +39,6 @@
#include <asm/pci-bridge.h>
#include <asm/irq.h>
#include <mm/mmu_decl.h>
#include <asm/prom.h>
#include <asm/udbg.h>
#include <sysdev/fsl_soc.h>
#include <sysdev/fsl_pci.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/85xx/mpc85xx_rdb.c
Expand Up @@ -19,7 +19,6 @@
#include <asm/machdep.h>
#include <asm/pci-bridge.h>
#include <mm/mmu_decl.h>
#include <asm/prom.h>
#include <asm/udbg.h>
#include <asm/mpic.h>
#include <soc/fsl/qe/qe.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/85xx/p1010rdb.c
Expand Up @@ -16,7 +16,6 @@
#include <asm/machdep.h>
#include <asm/pci-bridge.h>
#include <mm/mmu_decl.h>
#include <asm/prom.h>
#include <asm/udbg.h>
#include <asm/mpic.h>

Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/85xx/socrates.c
Expand Up @@ -29,7 +29,6 @@
#include <asm/machdep.h>
#include <asm/pci-bridge.h>
#include <asm/mpic.h>
#include <asm/prom.h>
#include <mm/mmu_decl.h>
#include <asm/udbg.h>

Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/85xx/stx_gp3.c
Expand Up @@ -28,7 +28,6 @@
#include <asm/machdep.h>
#include <asm/pci-bridge.h>
#include <asm/mpic.h>
#include <asm/prom.h>
#include <mm/mmu_decl.h>
#include <asm/udbg.h>

Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/85xx/tqm85xx.c
Expand Up @@ -26,7 +26,6 @@
#include <asm/machdep.h>
#include <asm/pci-bridge.h>
#include <asm/mpic.h>
#include <asm/prom.h>
#include <mm/mmu_decl.h>
#include <asm/udbg.h>

Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
Expand Up @@ -19,7 +19,6 @@
#include <asm/time.h>
#include <asm/machdep.h>
#include <asm/pci-bridge.h>
#include <asm/prom.h>
#include <mm/mmu_decl.h>
#include <asm/udbg.h>
#include <asm/swiotlb.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/8xx/adder875.c
Expand Up @@ -15,7 +15,6 @@
#include <asm/cpm1.h>
#include <asm/fs_pd.h>
#include <asm/udbg.h>
#include <asm/prom.h>

#include "mpc8xx.h"

Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/cell/cbe_thermal.c
Expand Up @@ -39,7 +39,6 @@
#include <linux/stringify.h>
#include <asm/spu.h>
#include <asm/io.h>
#include <asm/prom.h>
#include <asm/cell-regs.h>

#include "spu_priv1_mmio.h"
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/cell/pervasive.c
Expand Up @@ -19,7 +19,6 @@

#include <asm/io.h>
#include <asm/machdep.h>
#include <asm/prom.h>
#include <asm/reg.h>
#include <asm/cell-regs.h>
#include <asm/cpu_has_feature.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/cell/setup.c
Expand Up @@ -31,7 +31,6 @@
#include <asm/mmu.h>
#include <asm/processor.h>
#include <asm/io.h>
#include <asm/prom.h>
#include <asm/rtas.h>
#include <asm/pci-bridge.h>
#include <asm/iommu.h>
Expand Down

0 comments on commit 34fa52e

Please sign in to comment.