diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-07 10:09:22 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-08 10:02:13 +0100 |
commit | 04cb446c9a1bdddae41b20df5de8825df44e8dfe (patch) | |
tree | 686fb705d4b92f085c020e40962f580b9e1c33e5 /arch/arm/mach-omap/omap_devices.c | |
parent | d43bcb9987f47fd1cd575a4b965ddb743b5b7ca6 (diff) | |
download | barebox-04cb446c9a1bdddae41b20df5de8825df44e8dfe.tar.gz barebox-04cb446c9a1bdddae41b20df5de8825df44e8dfe.tar.xz |
ARM omap / mci: Fix register offsets
Only the OMAP4 has a register offset of 0x100 in the register space. Fix
this by using the device id mechanism. This became broken when the device
register convenience functions were introduced.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-omap/omap_devices.c')
-rw-r--r-- | arch/arm/mach-omap/omap_devices.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/arm/mach-omap/omap_devices.c b/arch/arm/mach-omap/omap_devices.c index e83ac85179..056cba541c 100644 --- a/arch/arm/mach-omap/omap_devices.c +++ b/arch/arm/mach-omap/omap_devices.c @@ -25,13 +25,6 @@ struct device_d *omap_add_uart(int id, unsigned long base) IORESOURCE_MEM_8BIT, &serial_plat); } -struct device_d *omap_add_mmc(int id, unsigned long base, - struct omap_hsmmc_platform_data *pdata) -{ - return add_generic_device("omap-hsmmc", id, NULL, - base, SZ_4K, IORESOURCE_MEM, pdata); -} - struct device_d *omap_add_i2c(int id, unsigned long base, void *pdata) { return add_generic_device("i2c-omap", id, NULL, base, SZ_4K, |