]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: OMAP2+: Avoid mailbox legacy device creation for DT-boot
authorSuman Anna <s-anna@ti.com>
Fri, 11 Jul 2014 21:44:40 +0000 (16:44 -0500)
committerTony Lindgren <tony@atomide.com>
Tue, 15 Jul 2014 12:08:56 +0000 (05:08 -0700)
The legacy platform device for mailbox should not be created for
a DT boot, so adjust the platform device initialization logic
appropriately.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/devices.c

index 592ba0a0ecf32ae884b545581df4f3453da831c7..708eb7db630c94dfc0f5520b080675db5f99c883 100644 (file)
@@ -460,9 +460,9 @@ static int __init omap2_init_devices(void)
        omap_init_audio();
        omap_init_camera();
        omap_init_hdmi_audio();
-       omap_init_mbox();
        /* If dtb is there, the devices will be created dynamically */
        if (!of_have_populated_dt()) {
+               omap_init_mbox();
                omap_init_mcspi();
                omap_init_sham();
                omap_init_aes();