[ARM] 4491/1: em7210 rtc clock

The commit d815461c7a73903d0a926b3cace6f69e144c54a3 in linus tree
converts the rtc-rs5c372 driver to a "new style" i2c driver.
Like commit c00593f6f816e5cfa6d193a2561ca77541f71424, this patch
register the rtc i2c device for the em7210 board.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by Arnaud Patard and committed by Russell King fe885fa2 70c14ff0

+13
+13
arch/arm/mach-iop32x/em7210.c
··· 22 22 #include <linux/serial_8250.h> 23 23 #include <linux/mtd/physmap.h> 24 24 #include <linux/platform_device.h> 25 + #include <linux/i2c.h> 25 26 #include <asm/hardware.h> 26 27 #include <linux/io.h> 27 28 #include <linux/irq.h> ··· 45 44 .offset = iop_gettimeoffset, 46 45 }; 47 46 47 + /* 48 + * EM7210 RTC 49 + */ 50 + static struct i2c_board_info __initdata em7210_i2c_devices[] = { 51 + { 52 + I2C_BOARD_INFO("rtc-rs5c372", 0x32), 53 + .type = "rs5c372a", 54 + }, 55 + }; 48 56 49 57 /* 50 58 * EM7210 I/O ··· 196 186 platform_device_register(&em7210_flash_device); 197 187 platform_device_register(&iop3xx_dma_0_channel); 198 188 platform_device_register(&iop3xx_dma_1_channel); 189 + 190 + i2c_register_board_info(0, em7210_i2c_devices, 191 + ARRAY_SIZE(em7210_i2c_devices)); 199 192 200 193 201 194 pm_power_off = em7210_power_off;