Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of: make drivers depend on CONFIG_OF instead of CONFIG_PPC_OF

Some OF drivers could likely be used on non-powerpc OF based platforms,
so fix the kconfig depends to be CONFIG_OF instead of CONFIG_PPC_OF.

Compile tested on ARM and sparc.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

authored by

Rob Herring and committed by
Grant Likely
236cdc7b a4f740cf

+6 -4
+3 -1
drivers/mmc/host/Kconfig
··· 83 83 84 84 config MMC_SDHCI_OF 85 85 tristate "SDHCI support on OpenFirmware platforms" 86 - depends on MMC_SDHCI && PPC_OF 86 + depends on MMC_SDHCI && OF 87 87 help 88 88 This selects the OF support for Secure Digital Host Controller 89 89 Interfaces. ··· 93 93 config MMC_SDHCI_OF_ESDHC 94 94 bool "SDHCI OF support for the Freescale eSDHC controller" 95 95 depends on MMC_SDHCI_OF 96 + depends on PPC_OF 96 97 select MMC_SDHCI_BIG_ENDIAN_32BIT_BYTE_SWAPPER 97 98 help 98 99 This selects the Freescale eSDHC controller support. ··· 103 102 config MMC_SDHCI_OF_HLWD 104 103 bool "SDHCI OF support for the Nintendo Wii SDHCI controllers" 105 104 depends on MMC_SDHCI_OF 105 + depends on PPC_OF 106 106 select MMC_SDHCI_BIG_ENDIAN_32BIT_BYTE_SWAPPER 107 107 help 108 108 This selects the Secure Digital Host Controller Interface (SDHCI)
+1 -1
drivers/mtd/Kconfig
··· 159 159 160 160 config MTD_OF_PARTS 161 161 tristate "Flash partition map based on OF description" 162 - depends on (MICROBLAZE || PPC_OF) && MTD_PARTITIONS 162 + depends on OF && MTD_PARTITIONS 163 163 help 164 164 This provides a partition parsing function which derives 165 165 the partition map from the children of the flash node,
+1 -1
drivers/mtd/maps/Kconfig
··· 72 72 73 73 config MTD_PHYSMAP_OF 74 74 tristate "Flash device in physical memory map based on OF description" 75 - depends on (MICROBLAZE || PPC_OF) && (MTD_CFI || MTD_JEDECPROBE || MTD_ROM) 75 + depends on OF && (MTD_CFI || MTD_JEDECPROBE || MTD_ROM) 76 76 help 77 77 This provides a 'mapping' driver which allows the NOR Flash and 78 78 ROM driver code to communicate with chips which are mapped
+1 -1
drivers/serial/Kconfig
··· 1402 1402 1403 1403 config SERIAL_OF_PLATFORM 1404 1404 tristate "Serial port on Open Firmware platform bus" 1405 - depends on PPC_OF || MICROBLAZE 1405 + depends on OF 1406 1406 depends on SERIAL_8250 || SERIAL_OF_PLATFORM_NWPSERIAL 1407 1407 help 1408 1408 If you have a PowerPC based system that has serial ports