* [PATCH] sh: fix i2c init order on ap325rxa
@ 2009-08-06 14:19 Magnus Damm
2009-08-07 3:52 ` [PATCH] sh: fix i2c init order on ap325rxa V2 Magnus Damm
0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2009-08-06 14:19 UTC (permalink / raw)
To: linux-sh
From: Magnus Damm <damm@igel.co.jp>
Convert the AP325RXA board code to register i2c devices from
arch_initcall() instead of __initcall(). This fix unbreaks
pcf8563 RTC driver support.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
---
Suitable for 2.6.31-rc.
arch/sh/boards/board-ap325rxa.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
--- 0001/arch/sh/boards/board-ap325rxa.c
+++ work/arch/sh/boards/board-ap325rxa.c 2009-08-05 18:36:47.000000000 +0900
@@ -399,6 +399,15 @@ static struct i2c_board_info __initdata
},
};
+static int __init ap325rxa_devices_i2c_setup(void)
+{
+ i2c_register_board_info(0, ap325rxa_i2c_devices,
+ ARRAY_SIZE(ap325rxa_i2c_devices));
+
+ return 0;
+}
+arch_initcall(ap325rxa_devices_i2c_setup);
+
static struct i2c_board_info ap325rxa_i2c_camera[] = {
{
I2C_BOARD_INFO("ov772x", 0x21),
@@ -538,9 +547,6 @@ static int __init ap325rxa_devices_setup
platform_resource_setup_memory(&ceu_device, "ceu", 4 << 20);
- i2c_register_board_info(0, ap325rxa_i2c_devices,
- ARRAY_SIZE(ap325rxa_i2c_devices));
-
spi_register_board_info(ap325rxa_spi_devices,
ARRAY_SIZE(ap325rxa_spi_devices));
^ permalink raw reply [flat|nested] 2+ messages in thread* [PATCH] sh: fix i2c init order on ap325rxa V2
2009-08-06 14:19 [PATCH] sh: fix i2c init order on ap325rxa Magnus Damm
@ 2009-08-07 3:52 ` Magnus Damm
0 siblings, 0 replies; 2+ messages in thread
From: Magnus Damm @ 2009-08-07 3:52 UTC (permalink / raw)
To: linux-sh
From: Magnus Damm <damm@igel.co.jp>
Convert the AP325RXA board code to register devices at
arch_initcall() time instead of device_initcall(). This
fix unbreaks pcf8563 RTC driver support.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
---
Suitable for 2.6.31-rc.
arch/sh/boards/board-ap325rxa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- 0001/arch/sh/boards/board-ap325rxa.c
+++ work/arch/sh/boards/board-ap325rxa.c 2009-08-07 12:35:22.000000000 +0900
@@ -547,7 +547,7 @@ static int __init ap325rxa_devices_setup
return platform_add_devices(ap325rxa_devices,
ARRAY_SIZE(ap325rxa_devices));
}
-device_initcall(ap325rxa_devices_setup);
+arch_initcall(ap325rxa_devices_setup);
/* Return the board specific boot mode pin configuration */
static int ap325rxa_mode_pins(void)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-07 3:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-06 14:19 [PATCH] sh: fix i2c init order on ap325rxa Magnus Damm
2009-08-07 3:52 ` [PATCH] sh: fix i2c init order on ap325rxa V2 Magnus Damm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox