|
@@ -16,6 +16,7 @@
|
|
#include <linux/clk.h>
|
|
#include <linux/clk.h>
|
|
#include <linux/err.h>
|
|
#include <linux/err.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
|
|
+#include <linux/of.h>
|
|
|
|
|
|
#include <mach/hardware.h>
|
|
#include <mach/hardware.h>
|
|
#include <mach/irqs.h>
|
|
#include <mach/irqs.h>
|
|
@@ -77,6 +78,10 @@ static int __init omap4_l3_init(void)
|
|
struct platform_device *pdev;
|
|
struct platform_device *pdev;
|
|
char oh_name[L3_MODULES_MAX_LEN];
|
|
char oh_name[L3_MODULES_MAX_LEN];
|
|
|
|
|
|
|
|
+ /* If dtb is there, the devices will be created dynamically */
|
|
|
|
+ if (of_have_populated_dt())
|
|
|
|
+ return -ENODEV;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* To avoid code running on other OMAPs in
|
|
* To avoid code running on other OMAPs in
|
|
* multi-omap builds
|
|
* multi-omap builds
|