summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap/include/mach/am33xx-devices.h
diff options
context:
space:
mode:
authorTeresa Gámez <t.gamez@phytec.de>2013-06-21 14:50:18 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-23 20:35:22 +0200
commitf64ed12bb6b5b06bb46fdb6af85cd558b72a1f30 (patch)
tree80688490b1bc1f8642e487dc37522154d9076402 /arch/arm/mach-omap/include/mach/am33xx-devices.h
parent6ae4cc1931e407a75c832719112588e43f97b0f9 (diff)
downloadbarebox-f64ed12bb6b5b06bb46fdb6af85cd558b72a1f30.tar.gz
barebox-f64ed12bb6b5b06bb46fdb6af85cd558b72a1f30.tar.xz
i2c-omap: Remove cpu_is functions completely
This patch removes the call of the cpu_is_* functions completely and uses id_tables instead. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-omap/include/mach/am33xx-devices.h')
-rw-r--r--arch/arm/mach-omap/include/mach/am33xx-devices.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-omap/include/mach/am33xx-devices.h b/arch/arm/mach-omap/include/mach/am33xx-devices.h
index 822caab762..6a4d901028 100644
--- a/arch/arm/mach-omap/include/mach/am33xx-devices.h
+++ b/arch/arm/mach-omap/include/mach/am33xx-devices.h
@@ -55,17 +55,20 @@ static inline struct device_d *am33xx_add_spi1(void)
static inline struct device_d *am33xx_add_i2c0(void *pdata)
{
- return omap_add_i2c(0, AM33XX_I2C0_BASE, pdata);
+ return add_generic_device("i2c-am33xx", 0, NULL, AM33XX_I2C0_BASE,
+ SZ_4K, IORESOURCE_MEM, pdata);
}
static inline struct device_d *am33xx_add_i2c1(void *pdata)
{
- return omap_add_i2c(1, AM33XX_I2C1_BASE, pdata);
+ return add_generic_device("i2c-am33xx", 1, NULL, AM33XX_I2C1_BASE,
+ SZ_4K, IORESOURCE_MEM, pdata);
}
static inline struct device_d *am33xx_add_i2c2(void *pdata)
{
- return omap_add_i2c(2, AM33XX_I2C2_BASE, pdata);
+ return add_generic_device("i2c-am33xx", 2, NULL, AM33XX_I2C2_BASE,
+ SZ_4K, IORESOURCE_MEM, pdata);
}
#endif /* __MACH_OMAP3_DEVICES_H */