[PATCH 4/5] OMAP4: devices: Do not create mcpdm device if the dtb has been provided
Peter Ujfalusi
peter.ujfalusi at ti.com
Fri Dec 2 04:52:59 EST 2011
If dtb is provided of will create the needed devices dynamically so there
is no need to create the platform device for McPDM here.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi at ti.com>
---
arch/arm/mach-omap2/devices.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index d7ca473..469f875 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -323,6 +323,10 @@ static void omap_init_mcpdm(void)
struct omap_hwmod *oh;
struct platform_device *pdev;
+ /* If dtb is there, the devices will be created dynamically */
+ if (of_have_populated_dt())
+ return;
+
oh = omap_hwmod_lookup("mcpdm");
if (!oh) {
printk(KERN_ERR "Could not look up mcpdm hw_mod\n");
--
1.7.8.rc4
More information about the linux-arm-kernel
mailing list