Skip to contentSkip to conversation

OMAP4: devices: Do not create dmic device if the dtb has been provided

PATCH New nb6g3dENgvI 2 participants 3 messages May 2, 2012 – May 8, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 OMAP4: devices: Do not create dmic device if the dtb has been provided

From: Peter Ujfalusi <[email protected]>

If dtb is provided the needed device will be created dynamically.

---
 arch/arm/mach-omap2/devices.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/devices.c +3 -2
index 98cab3a..df2f45a 100644
@@ -702,12 +702,13 @@ static int __init omap2_init_devices(void)
 	 */
 	omap_init_audio();
 	omap_init_mcpdm();
-	omap_init_dmic();
 	omap_init_camera();
 	omap_init_mbox();
 	/* If dtb is there, the devices will be created dynamically */
-	if (!of_have_populated_dt())
+	if (!of_have_populated_dt()) {
+		omap_init_dmic();
 		omap_init_mcspi();
+	}
 	omap_init_pmu();
 	omap_hdq_init();
 	omap_init_sti();
Signature · 1 line
1.7.8.6
#1 lore raw

PATCH 2/2 OMAP4: devices: Do not create mcpdm device if the dtb has been provided

From: Peter Ujfalusi <[email protected]>

If dtb is provided the needed device will be created dynamically.

---
 arch/arm/mach-omap2/devices.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/devices.c +1 -1
index df2f45a..b61c365 100644
@@ -701,12 +701,12 @@ static int __init omap2_init_devices(void)
 	 * in alphabetical order so they're easier to sort through.
 	 */
 	omap_init_audio();
-	omap_init_mcpdm();
 	omap_init_camera();
 	omap_init_mbox();
 	/* If dtb is there, the devices will be created dynamically */
 	if (!of_have_populated_dt()) {
 		omap_init_dmic();
+		omap_init_mcpdm();
 		omap_init_mcspi();
 	}
 	omap_init_pmu();
Signature · 1 line
1.7.8.6
maintainer
#2 lore raw

PATCH 2/2 OMAP4: devices: Do not create mcpdm device if the dtb has been provided

Quoted 3 lines · * nb6g3dENgvI <[email protected]> [120502 05:26]:

From: Peter Ujfalusi <[email protected]>

If dtb is provided the needed device will be created dynamically.

Thanks applying both into dt branch.

Regards,

Tony