devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/21] of: prom.h clean-up and removal
@ 2013-09-26 18:50 Rob Herring
  2013-09-26 18:50 ` [PATCH 01/21] drivers: remove unnecessary prom.h includes Rob Herring
                   ` (17 more replies)
  0 siblings, 18 replies; 36+ messages in thread
From: Rob Herring @ 2013-09-26 18:50 UTC (permalink / raw)
  To: linux-kernel, devicetree
  Cc: Grant Likely, Rob Herring, Anatolij Gustschin, Aurelien Jacquiot,
	Benjamin Herrenschmidt, Catalin Marinas, Chris Zankel,
	David S. Miller, H. Peter Anvin, Ingo Molnar, James Hogan,
	Jonas Bonn, Kumar Gala, Marc Kleine-Budde, Mark Salter,
	Max Filippov, Michal Simek, Olof Johansson, Paul Mackerras,
	Ralf Baechle, Richard Kuo, Russell King, Santosh Shilimkar,
	Thomas Gleixner, Vineet Gupta, Will Deacon, Wolfgang Grandegger,
	x86

From: Rob Herring <rob.herring@calxeda.com>

This is the second series of clean-up for architecture DT code. The first
series is here [1].

As the number of DT enabled architectures has grown, there has been a lot
of copy/paste duplication of prom.h. The include ordering for prom.h is
complex and has resulted in many implicit includes. This series cleans up
prom.h and removes the dependency of prom.h includes in the core DT code
on all architectures except sparc. This removes prom.h on several
architectures and makes it an architecture specific include on the rest.

Compiled on arm, arm64, microblaze, mips, openrisc, powerpc, sparc,
xtensa. Mostly defconfigs and some allyesconfigs. The 0-day builder has
also caught some issues.

A branch with both series is available here:
git://sources.calxeda.com/kernel/linux.git dt-cleanup

Rob

[1] http://www.spinics.net/lists/devicetree/msg04865.html

Rob Herring (21):
  drivers: remove unnecessary prom.h includes
  of: remove unnecessary prom.h includes
  ARM: keystone: remove unnecessary prom.h include
  arm64: remove unnecessary prom.h include
  openrisc: remove unnecessary prom.h include
  arc: remove unnecessary prom.h includes
  hexagon: remove unnecessary prom.h includes
  metag: move setup_machine_fdt declaration from prom.h
  microblaze: clean-up prom.h implicit includes
  drivers: clean-up prom.h implicit includes
  mips: add explicit includes of prom.h
  x86: add necessary includes for prom.h
  of: implement pci_address_to_pio as weak function
  of: implement of_node_to_nid as a weak function
  of: remove HAVE_ARCH_DEVTREE_FIXUPS
  of: move of_address_to_resource and of_iomap declarations from sparc
  of: move of_translate_dma_address to of_address.h
  powerpc: clean-up include ordering in prom.h
  powerpc: add explicit OF includes
  of: only include prom.h on sparc
  of: remove empty arch prom.h headers

 arch/arc/include/asm/prom.h                      | 14 ---------
 arch/arc/kernel/devtree.c                        |  1 -
 arch/arc/kernel/setup.c                          |  1 -
 arch/arm/include/asm/prom.h                      |  2 --
 arch/arm/mach-keystone/platsmp.c                 |  1 -
 arch/arm64/include/asm/prom.h                    |  1 -
 arch/arm64/mm/init.c                             |  1 -
 arch/c6x/include/asm/prom.h                      |  1 -
 arch/hexagon/kernel/setup.c                      |  3 --
 arch/metag/include/asm/prom.h                    | 23 --------------
 arch/metag/include/asm/setup.h                   |  1 +
 arch/metag/kernel/setup.c                        |  1 -
 arch/microblaze/include/asm/prom.h               | 39 +-----------------------
 arch/microblaze/kernel/prom.c                    |  1 +
 arch/microblaze/kernel/setup.c                   |  1 +
 arch/microblaze/kernel/timer.c                   |  1 +
 arch/microblaze/pci/pci-common.c                 |  1 +
 arch/mips/include/asm/prom.h                     | 11 -------
 arch/mips/lantiq/prom.c                          |  1 +
 arch/mips/mti-sead3/sead3-setup.c                |  2 ++
 arch/mips/ralink/of.c                            |  1 +
 arch/openrisc/include/asm/prom.h                 | 22 -------------
 arch/openrisc/kernel/prom.c                      |  1 -
 arch/powerpc/include/asm/prom.h                  | 33 ++++----------------
 arch/powerpc/kernel/epapr_paravirt.c             |  1 +
 arch/powerpc/platforms/512x/clock.c              |  1 +
 arch/powerpc/platforms/512x/pdm360ng.c           |  2 ++
 arch/powerpc/platforms/82xx/mpc8272_ads.c        |  2 ++
 arch/powerpc/platforms/82xx/pq2fads.c            |  2 ++
 arch/powerpc/platforms/83xx/suspend.c            |  2 ++
 arch/powerpc/platforms/86xx/pic.c                |  1 +
 arch/powerpc/platforms/embedded6xx/flipper-pic.c |  1 +
 arch/powerpc/platforms/embedded6xx/hlwd-pic.c    |  2 ++
 arch/powerpc/platforms/pasemi/gpio_mdio.c        |  1 +
 arch/powerpc/platforms/powermac/pfunc_base.c     |  1 +
 arch/powerpc/platforms/powernv/opal-lpc.c        |  1 +
 arch/powerpc/platforms/powernv/opal.c            |  1 +
 arch/powerpc/platforms/powernv/setup.c           |  1 +
 arch/powerpc/platforms/pseries/hotplug-memory.c  |  2 ++
 arch/powerpc/sysdev/cpm_common.c                 |  1 +
 arch/powerpc/sysdev/fsl_gtm.c                    |  2 ++
 arch/powerpc/sysdev/fsl_pmc.c                    |  1 +
 arch/powerpc/sysdev/mpic.c                       |  8 ++---
 arch/powerpc/sysdev/mpic_timer.c                 |  2 ++
 arch/sparc/include/asm/prom.h                    | 12 --------
 arch/x86/include/asm/prom.h                      |  5 ---
 arch/x86/kernel/devicetree.c                     | 11 +------
 arch/xtensa/include/asm/prom.h                   |  6 ----
 drivers/ata/sata_fsl.c                           |  2 ++
 drivers/char/bsr.c                               |  1 +
 drivers/char/hw_random/pasemi-rng.c              |  1 +
 drivers/cpufreq/pasemi-cpufreq.c                 |  1 +
 drivers/crypto/caam/ctrl.c                       |  3 ++
 drivers/crypto/caam/jr.c                         |  2 ++
 drivers/dma/fsldma.c                             |  2 ++
 drivers/edac/cell_edac.c                         |  1 +
 drivers/i2c/busses/i2c-mpc.c                     |  2 ++
 drivers/i2c/busses/i2c-powermac.c                |  1 +
 drivers/input/serio/xilinx_ps2.c                 |  1 +
 drivers/macintosh/macio_asic.c                   |  2 ++
 drivers/macintosh/rack-meter.c                   |  2 ++
 drivers/macintosh/smu.c                          |  1 +
 drivers/macintosh/via-pmu.c                      |  2 ++
 drivers/mtd/nand/fsl_elbc_nand.c                 |  1 +
 drivers/mtd/nand/pasemi_nand.c                   |  2 ++
 drivers/net/can/grcan.c                          |  3 --
 drivers/net/can/sja1000/sja1000_of_platform.c    |  1 -
 drivers/net/ethernet/ibm/emac/core.c             |  2 ++
 drivers/net/ethernet/ibm/emac/mal.c              |  1 +
 drivers/net/ethernet/ibm/emac/rgmii.c            |  1 +
 drivers/net/ethernet/ibm/emac/tah.c              |  1 +
 drivers/net/ethernet/ibm/emac/zmii.c             |  1 +
 drivers/net/ethernet/xilinx/ll_temac_main.c      |  1 +
 drivers/of/address.c                             |  8 +++++
 drivers/of/base.c                                |  7 +++++
 drivers/of/of_pci.c                              |  1 -
 drivers/of/of_pci_irq.c                          |  1 -
 drivers/of/pdt.c                                 |  1 -
 drivers/pcmcia/electra_cf.c                      |  2 ++
 drivers/tty/ehv_bytechan.c                       |  1 +
 drivers/tty/serial/pmac_zilog.c                  |  2 ++
 drivers/usb/host/ehci-ppc-of.c                   |  2 ++
 drivers/usb/host/ohci-ppc-of.c                   |  2 ++
 fs/proc/proc_devtree.c                           |  3 --
 include/linux/of.h                               | 13 ++++----
 include/linux/of_address.h                       | 39 +++++++++++++-----------
 sound/aoa/core/gpio-feature.c                    |  3 +-
 sound/aoa/soundbus/i2sbus/core.c                 |  2 ++
 sound/ppc/pmac.c                                 |  2 ++
 sound/ppc/tumbler.c                              |  1 +
 90 files changed, 141 insertions(+), 220 deletions(-)
 delete mode 100644 arch/arc/include/asm/prom.h
 delete mode 100644 arch/arm64/include/asm/prom.h
 delete mode 100644 arch/c6x/include/asm/prom.h
 delete mode 100644 arch/metag/include/asm/prom.h
 delete mode 100644 arch/openrisc/include/asm/prom.h
 delete mode 100644 arch/xtensa/include/asm/prom.h

-- 
1.8.1.2

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2013-10-04 10:36 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-26 18:50 [PATCH 00/21] of: prom.h clean-up and removal Rob Herring
2013-09-26 18:50 ` [PATCH 01/21] drivers: remove unnecessary prom.h includes Rob Herring
     [not found]   ` <1380221456-11192-2-git-send-email-robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-09-30  7:54     ` Marc Kleine-Budde
     [not found]       ` <52492E4F.2020701-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-09-30 13:19         ` Rob Herring
2013-09-30 13:23           ` Marc Kleine-Budde
2013-09-26 18:50 ` [PATCH 03/21] ARM: keystone: remove unnecessary prom.h include Rob Herring
2013-09-26 18:50 ` [PATCH 04/21] arm64: " Rob Herring
     [not found]   ` <1380221456-11192-5-git-send-email-robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-09-27 14:37     ` Catalin Marinas
2013-09-26 18:50 ` [PATCH 05/21] openrisc: " Rob Herring
2013-09-26 18:50 ` [PATCH 06/21] arc: remove unnecessary prom.h includes Rob Herring
2013-09-27  4:37   ` Vineet Gupta
2013-09-26 18:50 ` [PATCH 07/21] hexagon: " Rob Herring
2013-09-30 20:21   ` rkuo
2013-09-26 18:50 ` [PATCH 08/21] metag: move setup_machine_fdt declaration from prom.h Rob Herring
     [not found] ` <1380221456-11192-1-git-send-email-robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-09-26 18:50   ` [PATCH 02/21] of: remove unnecessary prom.h includes Rob Herring
2013-09-26 18:50   ` [PATCH 09/21] microblaze: clean-up prom.h implicit includes Rob Herring
2013-09-26 18:50   ` [PATCH 10/21] drivers: " Rob Herring
2013-09-26 18:50   ` [PATCH 12/21] x86: add necessary includes for prom.h Rob Herring
2013-09-26 18:50   ` [PATCH 20/21] of: only include prom.h on sparc Rob Herring
2013-09-26 18:50   ` [PATCH 21/21] of: remove empty arch prom.h headers Rob Herring
2013-09-27  4:59     ` Vineet Gupta
     [not found]     ` <1380221456-11192-22-git-send-email-robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-09-27 14:37       ` Catalin Marinas
2013-09-26 18:50 ` [PATCH 11/21] mips: add explicit includes of prom.h Rob Herring
2013-09-26 18:50 ` [PATCH 13/21] of: implement pci_address_to_pio as weak function Rob Herring
2013-09-26 18:50 ` [PATCH 14/21] of: implement of_node_to_nid as a " Rob Herring
2013-10-04 10:33   ` Grant Likely
2013-09-26 18:50 ` [PATCH 15/21] of: remove HAVE_ARCH_DEVTREE_FIXUPS Rob Herring
2013-09-27  4:58   ` Vineet Gupta
2013-09-26 18:50 ` [PATCH 16/21] of: move of_address_to_resource and of_iomap declarations from sparc Rob Herring
2013-09-26 18:50 ` [PATCH 17/21] of: move of_translate_dma_address to of_address.h Rob Herring
2013-09-26 18:50 ` [PATCH 18/21] powerpc: clean-up include ordering in prom.h Rob Herring
2013-09-26 18:50 ` [PATCH 19/21] powerpc: add explicit OF includes Rob Herring
2013-09-27  4:56 ` [PATCH 00/21] of: prom.h clean-up and removal Vineet Gupta
2013-10-03  9:33   ` Vineet Gupta
     [not found]     ` <C2D7FE5348E1B147BCA15975FBA2307514F2CE-uUKrqVzojAgF5QVroWrzJvufCSb+aD3WLzEdoUbNIic@public.gmane.org>
2013-10-03 18:08       ` Rob Herring
2013-10-04 10:36 ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).