@@ -322,7 +322,7 @@ static void __init palmld_map_io(void)
static void __init palmld_init(void)
{
- pxa2xx_mfp_config(ARRAY_AND_SIZE(palmld_pin_config));
+ pxa2xx_mfp_config(palmld_pin_config, ARRAY_SIZE(palmld_pin_config));
pxa_set_ffuart_info(NULL);
pxa_set_btuart_info(NULL);
pxa_set_stuart_info(NULL);
@@ -184,7 +184,7 @@ static void __init palmt5_reserve(void)
static void __init palmt5_init(void)
{
- pxa2xx_mfp_config(ARRAY_AND_SIZE(palmt5_pin_config));
+ pxa2xx_mfp_config(palmt5_pin_config, ARRAY_SIZE(palmt5_pin_config));
pxa_set_ffuart_info(NULL);
pxa_set_btuart_info(NULL);
pxa_set_stuart_info(NULL);
@@ -517,7 +517,7 @@ static inline void palmtc_lcd_init(void) {}
******************************************************************************/
static void __init palmtc_init(void)
{
- pxa2xx_mfp_config(ARRAY_AND_SIZE(palmtc_pin_config));
+ pxa2xx_mfp_config(palmtc_pin_config, ARRAY_SIZE(palmtc_pin_config));
pxa_set_ffuart_info(NULL);
pxa_set_btuart_info(NULL);
@@ -145,7 +145,8 @@ static struct gpio palmte_bl_gpios[] = {
static int palmte2_backlight_init(struct device *dev)
{
- return gpio_request_array(ARRAY_AND_SIZE(palmte_bl_gpios));
+ return gpio_request_array(palmte_bl_gpios,
+ ARRAY_SIZE(palmte_bl_gpios));
}
static int palmte2_backlight_notify(struct device *dev, int brightness)
@@ -157,7 +158,7 @@ static int palmte2_backlight_notify(struct device *dev, int brightness)
static void palmte2_backlight_exit(struct device *dev)
{
- gpio_free_array(ARRAY_AND_SIZE(palmte_bl_gpios));
+ gpio_free_array(palmte_bl_gpios, ARRAY_SIZE(palmte_bl_gpios));
}
static struct platform_pwm_backlight_data palmte2_backlight_data = {
@@ -342,7 +343,7 @@ static void __init palmte2_udc_init(void)
static void __init palmte2_init(void)
{
- pxa2xx_mfp_config(ARRAY_AND_SIZE(palmte2_pin_config));
+ pxa2xx_mfp_config(palmte2_pin_config, ARRAY_SIZE(palmte2_pin_config));
pxa_set_ffuart_info(NULL);
pxa_set_btuart_info(NULL);
@@ -341,7 +341,7 @@ static void __init palmtx_map_io(void)
static void __init palmtx_init(void)
{
- pxa2xx_mfp_config(ARRAY_AND_SIZE(palmtx_pin_config));
+ pxa2xx_mfp_config(palmtx_pin_config, ARRAY_SIZE(palmtx_pin_config));
pxa_set_ffuart_info(NULL);
pxa_set_btuart_info(NULL);
pxa_set_stuart_info(NULL);