ARM: ux500: Stop registering I2C sub-devices for HREF when DT is enabled
authorLee Jones <lee.jones@linaro.org>
Tue, 18 Sep 2012 15:08:50 +0000 (17:08 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 20 Sep 2012 10:32:44 +0000 (12:32 +0200)
Here we remove all calls to register I2C sub-devices from platform
code when Device Tree is enabled. Instead the I2C driver will parse
the Device Tree for them.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
arch/arm/mach-ux500/board-mop500.c

index 671229e0b23cbe212e66ee2813512f581b34d807..3faedf07ed6aa3f5fb9d8696a2711cbcdb683e4c 100644 (file)
@@ -824,15 +824,6 @@ static void __init u8500_init_machine(void)
                platform_add_devices(mop500_platform_devs,
                                ARRAY_SIZE(mop500_platform_devs));
 
-               hrefv60_sdi_init(parent);
-
-               i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices);
-               i2c0_devs -= NUM_PRE_V60_I2C0_DEVICES;
-
-               i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs);
-               i2c_register_board_info(2, mop500_i2c2_devices,
-                                       ARRAY_SIZE(mop500_i2c2_devices));
-
                mop500_uib_init();
        }