ARM: OMAP3: Fix errors for omap_l3_smx when booted with device tree
[deliverable/linux.git] / arch / arm / mach-omap2 / devices.c
index 324f02bf8a51da6b3d3395d30c309447a8f7c793..55447972eeedd3a62b8a8d82d7fbb650aeecba94 100644 (file)
@@ -49,7 +49,7 @@ static int __init omap3_l3_init(void)
         * To avoid code running on other OMAPs in
         * multi-omap builds
         */
-       if (!(cpu_is_omap34xx()))
+       if (!(cpu_is_omap34xx()) || of_have_populated_dt())
                return -ENODEV;
 
        snprintf(oh_name, L3_MODULES_MAX_LEN, "l3_main");
This page took 0.024031 seconds and 5 git commands to generate.