Skip to contentSkip to conversation

fsg-setup.c should use new style i2c model

PATCH New Tomasz Chmielewski 1 participant 1 message Aug 8, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fsg-setup.c should use new style i2c model

RTC drivers were updated to the new style i2c model.

fsg-setup.c for Freecom FSG-3 was to date not updated to use it. Because of this, it is not possible to use the RTC.

This tiny patch updates arch/arm/mach-ixp4xx/fsg-setup.c to use the correct device.

It also removes an unused variable which was issuing a compilation warning.

arch/arm/mach-ixp4xx/fsg-setup.c +0 -0
index 0db3a90..0e0a234 100644
@@ -64,7 +64,7 @@ static struct platform_device fsg_i2c_gpio = {
 
static struct i2c_board_info __initdata fsg_i2c_board_info [] = {
	{
-		I2C_BOARD_INFO("rtc-isl1208", 0x6f),
+		I2C_BOARD_INFO("isl1208", 0x6f),
	},
};

@@ -179,7 +179,6 @@ static void __init fsg_init(void)

{
	DECLARE_MAC_BUF(mac_buf);
	uint8_t __iomem *f;

- int i;

	ixp4xx_sys_init();