Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f22dd39 authored by Grant Likely's avatar Grant Likely
Browse files

of: Only compile OF_DYNAMIC on PowerPC pseries and iseries



Only two architectures use the OF node reference counting and reclaim bits.
There is no need to compile it for the rest of the PowerPC platforms or for
any of the other architectures.  This patch makes iseries and pseries
select CONFIG_OF_DYNAMIC, and makes it default to off for everything else.

It is still safe to turn on CONFIG_OF_DYNAMIC on all architectures, it just
isn't necessary.

v2: Also select OF_DYNAMIC for PPC_CHROMA and MPC885ADS as reported by Michael
    Meuling

Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Jimi Xenidis <jimix@pobox.com> (for PPC_CHROMA bug fix)
Cc: Rob Herring <rob.herring@calxeda.com>
parent 54119729
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ config MPC86XADS
config MPC885ADS
	bool "MPC885ADS"
	select CPM1
	select OF_DYNAMIC
	help
	  Freescale Semiconductor MPC885 Application Development System (ADS).
	  Also known as DUET.
+1 −0
Original line number Diff line number Diff line
config PPC_ISERIES
	bool "IBM Legacy iSeries"
	depends on PPC64 && PPC_BOOK3S
	select OF_DYNAMIC
	select PPC_SMP_MUXED_IPI
	select PPC_INDIRECT_PIO
	select PPC_INDIRECT_MMIO
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ config PPC_PSERIES
	bool "IBM pSeries & new (POWER5-based) iSeries"
	select HAVE_PCSPKR_PLATFORM
	select MPIC
	select OF_DYNAMIC
	select PCI_MSI
	select PPC_XICS
	select PPC_ICP_NATIVE
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ config PPC_CHROMA
	bool "PowerEN PCIe Chroma Card"
	select EPAPR_BOOT
	select PPC_WSP
	select OF_DYNAMIC
	default y

endmenu
+3 −2
Original line number Diff line number Diff line
@@ -35,9 +35,10 @@ config OF_EARLY_FLATTREE
config OF_PROMTREE
	bool

# Hardly any platforms need this.  It is safe to select, but only do so if you
# need it.
config OF_DYNAMIC
	def_bool y
	depends on PPC_OF
	bool

config OF_ADDRESS
	def_bool y
Loading