@@ -405,6 +405,15 @@ static struct i2c_board_info migor_i2c_d
},
};
+static int __init migor_devices_i2c_setup(void)
+{
+ i2c_register_board_info(0, migor_i2c_devices,
+ ARRAY_SIZE(migor_i2c_devices));
+
+ return 0;
+}
+arch_initcall(migor_devices_i2c_setup);
+
static struct i2c_board_info migor_i2c_camera[] = {
{
I2C_BOARD_INFO("ov772x", 0x21),
@@ -600,9 +609,6 @@ static int __init migor_devices_setup(vo
platform_resource_setup_memory(&migor_ceu_device, "ceu", 4 << 20);
- i2c_register_board_info(0, migor_i2c_devices,
- ARRAY_SIZE(migor_i2c_devices));
-
spi_register_board_info(migor_spi_devices,
ARRAY_SIZE(migor_spi_devices));