ARM: imx: dynamically register imx-i2c devices (imx21)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
This commit is contained in:
@@ -368,6 +368,7 @@ struct platform_device mxc_fec_device = {
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MACH_MX27
|
||||
#define DEFINE_IMX_I2C_DEVICE(n, baseaddr, irq) \
|
||||
static struct resource mxc_i2c_resources ## n[] = { \
|
||||
{ \
|
||||
@@ -390,7 +391,6 @@ struct platform_device mxc_fec_device = {
|
||||
|
||||
DEFINE_IMX_I2C_DEVICE(0, MX2x_I2C_BASE_ADDR, MX2x_INT_I2C);
|
||||
|
||||
#ifdef CONFIG_MACH_MX27
|
||||
DEFINE_IMX_I2C_DEVICE(1, MX27_I2C2_BASE_ADDR, MX27_INT_I2C2);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user