Commit 2f1a5bf7 authored by Philipp Zabel's avatar Philipp Zabel Committed by Eric Miao

[ARM] pxa/magician: use ARRAY_AND_SIZE for platform_add_devices

Signed-off-by: default avatarPhilipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: default avatarEric Miao <eric.miao@marvell.com>
parent f8f9d5ec
...@@ -779,7 +779,7 @@ static void __init magician_init(void) ...@@ -779,7 +779,7 @@ static void __init magician_init(void)
pxa2xx_mfp_config(ARRAY_AND_SIZE(magician_pin_config)); 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"); err = gpio_request(GPIO83_MAGICIAN_nIR_EN, "nIR_EN");
if (!err) { if (!err) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment