From: Rob Herring <robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Cc: Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>
Subject: [PATCH 3/3] OF: make drivers depend on CONFIG_OF instead of CONFIG_PPC_OF
Date: Wed, 17 Nov 2010 17:50:24 -0600 [thread overview]
Message-ID: <1290037824-24978-4-git-send-email-robherring2@gmail.com> (raw)
In-Reply-To: <1290037824-24978-1-git-send-email-robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
From: Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>
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-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>
---
drivers/char/ipmi/ipmi_si_intf.c | 14 +++++++-------
drivers/mmc/host/Kconfig | 4 +++-
drivers/mtd/Kconfig | 2 +-
drivers/mtd/maps/Kconfig | 2 +-
drivers/serial/Kconfig | 2 +-
5 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index 9167e04..e8f3497 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -66,7 +66,7 @@
#include <linux/ctype.h>
#include <linux/pnp.h>
-#ifdef CONFIG_PPC_OF
+#ifdef CONFIG_OF
#include <linux/of_device.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
@@ -309,7 +309,7 @@ static int pci_registered;
#ifdef CONFIG_ACPI
static int pnp_registered;
#endif
-#ifdef CONFIG_PPC_OF
+#ifdef CONFIG_OF
static int plat_registered;
#endif
@@ -2531,7 +2531,7 @@ static struct pci_driver ipmi_pci_driver = {
#endif /* CONFIG_PCI */
-#ifdef CONFIG_PPC_OF
+#ifdef CONFIG_OF
static int __devinit ipmi_plat_probe(struct platform_device *dev)
{
struct smi_info *info;
@@ -2644,7 +2644,7 @@ static struct platform_driver ipmi_platform_driver = {
.probe = ipmi_plat_probe,
.remove = __devexit_p(ipmi_plat_remove),
};
-#endif /* CONFIG_PPC_OF */
+#endif /* CONFIG_OF */
static int wait_for_msg_done(struct smi_info *smi_info)
{
@@ -3381,7 +3381,7 @@ static __devinit int init_ipmi_si(void)
spmi_find_bmc();
#endif
-#ifdef CONFIG_PPC_OF
+#ifdef CONFIG_OF
platform_driver_register(&ipmi_platform_driver);
plat_registered = 1;
#endif
@@ -3441,7 +3441,7 @@ static __devinit int init_ipmi_si(void)
pci_unregister_driver(&ipmi_pci_driver);
#endif
-#ifdef CONFIG_PPC_OF
+#ifdef CONFIG_OF
if (plat_registered)
platform_driver_unregister(&ipmi_platform_driver);
#endif
@@ -3542,7 +3542,7 @@ static __exit void cleanup_ipmi_si(void)
pnp_unregister_driver(&ipmi_pnp_driver);
#endif
-#ifdef CONFIG_PPC_OF
+#ifdef CONFIG_OF
if (plat_registered)
platform_driver_unregister(&ipmi_platform_driver);
#endif
diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
index 68d1279..ec94465 100644
--- a/drivers/mmc/host/Kconfig
+++ b/drivers/mmc/host/Kconfig
@@ -83,7 +83,7 @@ config MMC_RICOH_MMC
config MMC_SDHCI_OF
tristate "SDHCI support on OpenFirmware platforms"
- depends on MMC_SDHCI && PPC_OF
+ depends on MMC_SDHCI && OF
help
This selects the OF support for Secure Digital Host Controller
Interfaces.
@@ -93,6 +93,7 @@ config MMC_SDHCI_OF
config MMC_SDHCI_OF_ESDHC
bool "SDHCI OF support for the Freescale eSDHC controller"
depends on MMC_SDHCI_OF
+ depends on PPC_OF
select MMC_SDHCI_BIG_ENDIAN_32BIT_BYTE_SWAPPER
help
This selects the Freescale eSDHC controller support.
@@ -102,6 +103,7 @@ config MMC_SDHCI_OF_ESDHC
config MMC_SDHCI_OF_HLWD
bool "SDHCI OF support for the Nintendo Wii SDHCI controllers"
depends on MMC_SDHCI_OF
+ depends on PPC_OF
select MMC_SDHCI_BIG_ENDIAN_32BIT_BYTE_SWAPPER
help
This selects the Secure Digital Host Controller Interface (SDHCI)
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index 1e2cbf5..b1f7689 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -159,7 +159,7 @@ config MTD_AFS_PARTS
config MTD_OF_PARTS
tristate "Flash partition map based on OF description"
- depends on (MICROBLAZE || PPC_OF) && MTD_PARTITIONS
+ depends on OF && MTD_PARTITIONS
help
This provides a partition parsing function which derives
the partition map from the children of the flash node,
diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig
index 701d942..83346d6 100644
--- a/drivers/mtd/maps/Kconfig
+++ b/drivers/mtd/maps/Kconfig
@@ -72,7 +72,7 @@ config MTD_PHYSMAP_BANKWIDTH
config MTD_PHYSMAP_OF
tristate "Flash device in physical memory map based on OF description"
- depends on (MICROBLAZE || PPC_OF) && (MTD_CFI || MTD_JEDECPROBE || MTD_ROM)
+ depends on OF && (MTD_CFI || MTD_JEDECPROBE || MTD_ROM)
help
This provides a 'mapping' driver which allows the NOR Flash and
ROM driver code to communicate with chips which are mapped
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index 12900f7..83f3400 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -1408,7 +1408,7 @@ config SERIAL_NETX_CONSOLE
config SERIAL_OF_PLATFORM
tristate "Serial port on Open Firmware platform bus"
- depends on PPC_OF || MICROBLAZE
+ depends on OF
depends on SERIAL_8250 || SERIAL_OF_PLATFORM_NWPSERIAL
help
If you have a PowerPC based system that has serial ports
--
1.7.1
next prev parent reply other threads:[~2010-11-17 23:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-17 23:50 [PATCH 0/3] Enable OF drivers for non-PPC Rob Herring
[not found] ` <1290037824-24978-1-git-send-email-robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-11-17 23:50 ` [PATCH 1/3] ipmi: convert OF driver to platform driver Rob Herring
[not found] ` <1290037824-24978-2-git-send-email-robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-12-30 0:53 ` Grant Likely
2010-11-17 23:50 ` [PATCH 2/3] of_serial: explicitly include of_irq.h Rob Herring
[not found] ` <1290037824-24978-3-git-send-email-robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-12-30 0:54 ` Grant Likely
2010-11-17 23:50 ` Rob Herring [this message]
[not found] ` <1290037824-24978-4-git-send-email-robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-12-30 0:56 ` [PATCH 3/3] OF: make drivers depend on CONFIG_OF instead of CONFIG_PPC_OF Grant Likely
2010-11-30 15:52 ` [PATCH 0/3] Enable OF drivers for non-PPC Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1290037824-24978-4-git-send-email-robherring2@gmail.com \
--to=robherring2-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.