|
@@ -17,6 +17,7 @@
|
|
|
#include <linux/delay.h>
|
|
|
#include <linux/gpio.h>
|
|
|
#include <linux/i2c/twl4030.h>
|
|
|
+#include <linux/regulator/machine.h>
|
|
|
|
|
|
#include <mach/hardware.h>
|
|
|
#include <mach/control.h>
|
|
@@ -437,6 +438,15 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers)
|
|
|
}
|
|
|
|
|
|
omap2_init_mmc(hsmmc_data, OMAP34XX_NR_MMC);
|
|
|
+
|
|
|
+ /* pass the device nodes back to board setup code */
|
|
|
+ for (c = controllers; c->mmc; c++) {
|
|
|
+ struct omap_mmc_platform_data *mmc = hsmmc_data[c->mmc - 1];
|
|
|
+
|
|
|
+ if (!c->mmc || c->mmc > nr_hsmmc)
|
|
|
+ continue;
|
|
|
+ c->dev = mmc->dev;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
#endif
|