Skip to contentSkip to conversation

blackfin: Clean up duplicate I2C device type definitions

PATCH In review Jean Delvare 2 participants 2 messages Jul 18, 2009 1 message not in the archive I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 blackfin: Clean up duplicate I2C device type definitions

I2C_BOARD_INFO() already sets .type, no need to set it again.

Cc Mike Frysinger <[email protected]>
---
 arch/blackfin/mach-bf527/boards/cm_bf527.c |    2 --
 1 file changed, 2 deletions(-)
arch/blackfin/mach-bf527/boards/cm_bf527.c +0 -2
@@ -796,13 +796,11 @@ static struct i2c_board_info __initdata
 #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
 	{
 		I2C_BOARD_INFO("pcf8574_lcd", 0x22),
-		.type = "pcf8574_lcd",
 	},
 #endif
 #if defined(CONFIG_TWI_KEYPAD) || defined(CONFIG_TWI_KEYPAD_MODULE)
 	{
 		I2C_BOARD_INFO("pcf8574_keypad", 0x27),
-		.type = "pcf8574_keypad",
 		.irq = IRQ_PF8,
 	},
 #endif
Signature · 1 line
Jean Delvare

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 1 line · Jean Delvare

I2C_BOARD_INFO() already sets .type, no need to set it again.

thanks, ive merged this into the Blackfin tree
-mike