Ported all 2.6.23 patches to 2.6.24 (except the ethernet driver and patches that...
[nslu2-linux/kernel.git] / patches / 2.6.24 / ixp4xx-dsmg600-i2c-info.patch
blob86a307820d4aca0f94147e9bcd1830ee35ee37b6
1 Index: linux-2.6.23.12-armeb/arch/arm/mach-ixp4xx/dsmg600-setup.c
2 ===================================================================
3 --- linux-2.6.23.12-armeb.orig/arch/arm/mach-ixp4xx/dsmg600-setup.c 2008-01-12 11:58:32.000000000 +1030
4 +++ linux-2.6.23.12-armeb/arch/arm/mach-ixp4xx/dsmg600-setup.c 2008-01-12 12:00:37.000000000 +1030
5 @@ -14,6 +14,7 @@
6 #include <linux/kernel.h>
7 #include <linux/serial.h>
8 #include <linux/serial_8250.h>
9 +#include <linux/i2c.h>
10 #include <linux/i2c-gpio.h>
12 #include <asm/mach-types.h>
13 @@ -51,6 +52,12 @@
17 +static struct i2c_board_info __initdata dsmg600_i2c_board_info [] = {
18 + {
19 + I2C_BOARD_INFO("rtc-pcf8563", 0x51),
20 + },
21 +};
23 #ifdef CONFIG_LEDS_CLASS
24 static struct resource dsmg600_led_resources[] = {
26 @@ -166,6 +173,9 @@
28 platform_add_devices(dsmg600_devices, ARRAY_SIZE(dsmg600_devices));
30 + i2c_register_board_info(0, dsmg600_i2c_board_info,
31 + ARRAY_SIZE(dsmg600_i2c_board_info));
33 #ifdef CONFIG_LEDS_CLASS
34 /* We don't care whether or not this works. */
35 (void)platform_device_register(&dsmg600_leds);