[ARM] pxa/magician: use ARRAY_AND_SIZE for platform_add_devices

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
This commit is contained in:
Philipp Zabel 2009-04-28 13:31:08 +02:00 committed by Eric Miao
parent f8f9d5ecff
commit 2f1a5bf707
1 changed files with 1 additions and 1 deletions

View 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) {