diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-02-11 14:48:52 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-03-01 07:29:01 -0500 |
commit | fe5e07967187f3af538c237921993ec5889b3f2a (patch) | |
tree | 8bb3005449ed41483c655cd41ae464f7984009ca /arch/arm/mach-at91 | |
parent | e261501d05bd2df244d31e0866b1e81776766ecf (diff) |
ARM: at91/snapper9260: move gpio_to_irq out of structure initialization
gpio_to_irq() implementation will be moved from a macro to a
plain function: we cannot use it in a structure initialization
anymore.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Reviewed-by: Ryan Mallon <rmallon@gmail.com>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/board-snapper9260.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/mach-at91/board-snapper9260.c b/arch/arm/mach-at91/board-snapper9260.c index 4770db08e5a6..3c2e3fcc310c 100644 --- a/arch/arm/mach-at91/board-snapper9260.c +++ b/arch/arm/mach-at91/board-snapper9260.c | |||
@@ -145,11 +145,11 @@ static struct i2c_board_info __initdata snapper9260_i2c_devices[] = { | |||
145 | /* Audio codec */ | 145 | /* Audio codec */ |
146 | I2C_BOARD_INFO("tlv320aic23", 0x1a), | 146 | I2C_BOARD_INFO("tlv320aic23", 0x1a), |
147 | }, | 147 | }, |
148 | { | 148 | }; |
149 | |||
150 | static struct i2c_board_info __initdata snapper9260_i2c_isl1208 = { | ||
149 | /* RTC */ | 151 | /* RTC */ |
150 | I2C_BOARD_INFO("isl1208", 0x6f), | 152 | I2C_BOARD_INFO("isl1208", 0x6f), |
151 | .irq = gpio_to_irq(AT91_PIN_PA31), | ||
152 | }, | ||
153 | }; | 153 | }; |
154 | 154 | ||
155 | static void __init snapper9260_add_device_nand(void) | 155 | static void __init snapper9260_add_device_nand(void) |
@@ -163,6 +163,10 @@ static void __init snapper9260_board_init(void) | |||
163 | { | 163 | { |
164 | at91_add_device_i2c(snapper9260_i2c_devices, | 164 | at91_add_device_i2c(snapper9260_i2c_devices, |
165 | ARRAY_SIZE(snapper9260_i2c_devices)); | 165 | ARRAY_SIZE(snapper9260_i2c_devices)); |
166 | |||
167 | snapper9260_i2c_isl1208.irq = gpio_to_irq(AT91_PIN_PA31); | ||
168 | i2c_register_board_info(0, &snapper9260_i2c_isl1208, 1); | ||
169 | |||
166 | at91_add_device_serial(); | 170 | at91_add_device_serial(); |
167 | at91_add_device_usbh(&snapper9260_usbh_data); | 171 | at91_add_device_usbh(&snapper9260_usbh_data); |
168 | at91_add_device_udc(&snapper9260_udc_data); | 172 | at91_add_device_udc(&snapper9260_udc_data); |