diff options
Diffstat (limited to 'arch/arm/mach-omap2/pdata-quirks.c')
-rw-r--r-- | arch/arm/mach-omap2/pdata-quirks.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index 9113e7037ae5..76abc5b63d6d 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/gpio.h> | 11 | #include <linux/gpio.h> |
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/of_platform.h> | ||
14 | #include <linux/wl12xx.h> | 15 | #include <linux/wl12xx.h> |
15 | 16 | ||
16 | #include "common.h" | 17 | #include "common.h" |
@@ -104,6 +105,10 @@ static void __init omap5_uevm_legacy_init(void) | |||
104 | } | 105 | } |
105 | #endif | 106 | #endif |
106 | 107 | ||
108 | struct of_dev_auxdata omap_auxdata_lookup[] __initdata = { | ||
109 | { /* sentinel */ }, | ||
110 | }; | ||
111 | |||
107 | static struct pdata_init pdata_quirks[] __initdata = { | 112 | static struct pdata_init pdata_quirks[] __initdata = { |
108 | #ifdef CONFIG_ARCH_OMAP3 | 113 | #ifdef CONFIG_ARCH_OMAP3 |
109 | { "nokia,omap3-n9", hsmmc2_internal_input_clk, }, | 114 | { "nokia,omap3-n9", hsmmc2_internal_input_clk, }, |
@@ -120,10 +125,14 @@ static struct pdata_init pdata_quirks[] __initdata = { | |||
120 | { /* sentinel */ }, | 125 | { /* sentinel */ }, |
121 | }; | 126 | }; |
122 | 127 | ||
123 | void __init pdata_quirks_init(void) | 128 | void __init pdata_quirks_init(struct of_device_id *omap_dt_match_table) |
124 | { | 129 | { |
125 | struct pdata_init *quirks = pdata_quirks; | 130 | struct pdata_init *quirks = pdata_quirks; |
126 | 131 | ||
132 | omap_sdrc_init(NULL, NULL); | ||
133 | of_platform_populate(NULL, omap_dt_match_table, | ||
134 | omap_auxdata_lookup, NULL); | ||
135 | |||
127 | while (quirks->compatible) { | 136 | while (quirks->compatible) { |
128 | if (of_machine_is_compatible(quirks->compatible)) { | 137 | if (of_machine_is_compatible(quirks->compatible)) { |
129 | if (quirks->fn) | 138 | if (quirks->fn) |