[ARM] pxa/magician: use ARRAY_AND_SIZE for platform_add_devices
authorPhilipp Zabel <philipp.zabel@gmail.com>
Tue, 28 Apr 2009 11:31:08 +0000 (13:31 +0200)
committerEric Miao <eric.y.miao@gmail.com>
Fri, 5 Jun 2009 02:39:39 +0000 (10:39 +0800)
Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
arch/arm/mach-pxa/magician.c

index 34046c8bfaf573305721098fcdf2ee0e12423538..ca39669cffc508adc980e35774951d9aeabbc855 100644 (file)
@@ -779,7 +779,7 @@ static void __init magician_init(void)
 
        pxa2xx_mfp_config(ARRAY_AND_SIZE(magician_pin_config));
 
-       platform_add_devices(devices, ARRAY_SIZE(devices));
+       platform_add_devices(ARRAY_AND_SIZE(devices));
 
        err = gpio_request(GPIO83_MAGICIAN_nIR_EN, "nIR_EN");
        if (!err) {