Skip to content

Commit 52d9962

Browse files
haokexinmpe
authored andcommitted
powerpc: kill PPC_OF
We have set CONFIG_PPC_OF to always 'y' in commit 0a498d9 ("powerpc: set CONFIG_PPC_OF=y always for ARCH=powerpc") nine years ago. And the arch/ppc also has gone away for many years. The OF functionality was also moved to a common place and be used by many archs. So it does make no sense to keep such a option in the current kernel. Just kill it. Signed-off-by: Kevin Hao <haokexin@gmail.com> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent f915b51 commit 52d9962

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎arch/powerpc/Kconfig‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,6 @@ config ARCH_MAY_HAVE_PC_FDC
189189
bool
190190
default PCI
191191

192-
config PPC_OF
193-
def_bool y
194-
195192
config PPC_UDBG_16550
196193
bool
197194
default n

‎arch/powerpc/Kconfig.debug‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ config BDI_SWITCH
117117

118118
config BOOTX_TEXT
119119
bool "Support for early boot text console (BootX or OpenFirmware only)"
120-
depends on PPC_OF && PPC_BOOK3S
120+
depends on PPC_BOOK3S
121121
help
122122
Say Y here to see progress messages from the boot firmware in text
123123
mode. Requires either BootX or Open Firmware.

‎arch/powerpc/kernel/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ obj-y := cputable.o ptrace.o syscalls.o \
3333
signal.o sysfs.o cacheinfo.o time.o \
3434
prom.o traps.o setup-common.o \
3535
udbg.o misc.o io.o dma.o \
36-
misc_$(CONFIG_WORD_SIZE).o vdso32/
36+
misc_$(CONFIG_WORD_SIZE).o vdso32/ \
37+
of_platform.o prom_parse.o
3738
obj-$(CONFIG_PPC64) += setup_64.o sys_ppc32.o \
3839
signal_64.o ptrace32.o \
3940
paca.o nvram_64.o firmware.o
@@ -47,7 +48,6 @@ obj-$(CONFIG_PPC64) += vdso64/
4748
obj-$(CONFIG_ALTIVEC) += vecemu.o
4849
obj-$(CONFIG_PPC_970_NAP) += idle_power4.o
4950
obj-$(CONFIG_PPC_P7_NAP) += idle_power7.o
50-
obj-$(CONFIG_PPC_OF) += of_platform.o prom_parse.o
5151
procfs-y := proc_powerpc.o
5252
obj-$(CONFIG_PROC_FS) += $(procfs-y)
5353
rtaspci-$(CONFIG_PPC64)-$(CONFIG_PCI) := rtas_pci.o

0 commit comments

Comments
 (0)