blackfin: twi: Move TWI peripheral pin request array to platform data
[sfrench/cifs-2.6.git] / arch / blackfin / mach-bf518 / boards / tcm-bf518.c
index 6eebee4e421765f4bc962ab2c8eae24cc613481a..0bedc737566bdbcc0f5d77a4800f1b16af8395c4 100644 (file)
@@ -455,6 +455,8 @@ static struct platform_device bfin_sir1_device = {
 #endif
 
 #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
+static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0};
+
 static struct resource bfin_twi0_resource[] = {
        [0] = {
                .start = TWI0_REGBASE,
@@ -473,6 +475,9 @@ static struct platform_device i2c_bfin_twi_device = {
        .id = 0,
        .num_resources = ARRAY_SIZE(bfin_twi0_resource),
        .resource = bfin_twi0_resource,
+       .dev = {
+               .platform_data = &bfin_twi0_pins,
+       },
 };
 #endif