@@ -242,11 +242,12 @@ static struct mv_usb_platform_data pxa168_sph_pdata = {
static void __init common_init(void)
{
- mfp_config(ARRAY_AND_SIZE(common_pin_config));
+ mfp_config(common_pin_config, ARRAY_SIZE(common_pin_config));
/* on-chip devices */
pxa168_add_uart(1);
- pxa168_add_twsi(1, NULL, ARRAY_AND_SIZE(aspenite_i2c_info));
+ pxa168_add_twsi(1, NULL, aspenite_i2c_info,
+ ARRAY_SIZE(aspenite_i2c_info));
pxa168_add_ssp(1);
pxa168_add_nand(&aspenite_nand_info);
pxa168_add_fb(&aspenite_lcd_info);
@@ -39,7 +39,8 @@ static struct pxa_gpio_platform_data pxa168_gpio_pdata = {
static void __init avengers_lite_init(void)
{
- mfp_config(ARRAY_AND_SIZE(avengers_lite_pin_config_V16F));
+ mfp_config(avengers_lite_pin_config_V16F,
+ ARRAY_SIZE(avengers_lite_pin_config_V16F));
/* on-chip devices */
pxa168_add_uart(2);
@@ -202,7 +202,7 @@ static struct sram_platdata mmp2_isram_platdata = {
static void __init brownstone_init(void)
{
- mfp_config(ARRAY_AND_SIZE(brownstone_pin_config));
+ mfp_config(brownstone_pin_config, ARRAY_SIZE(brownstone_pin_config));
/* on-chip devices */
mmp2_add_uart(1);
@@ -210,7 +210,8 @@ static void __init brownstone_init(void)
platform_device_add_data(&mmp2_device_gpio, &mmp2_gpio_pdata,
sizeof(struct pxa_gpio_platform_data));
platform_device_register(&mmp2_device_gpio);
- mmp2_add_twsi(1, NULL, ARRAY_AND_SIZE(brownstone_twsi1_info));
+ mmp2_add_twsi(1, NULL, brownstone_twsi1_info,
+ ARRAY_SIZE(brownstone_twsi1_info));
mmp2_add_sdhost(0, &mmp2_sdh_platdata_mmc0); /* SD/MMC */
mmp2_add_sdhost(2, &mmp2_sdh_platdata_mmc2); /* eMMC */
mmp2_add_asram(&mmp2_asram_platdata);
@@ -107,5 +107,5 @@ static struct clk_lookup mmp2_clkregs[] = {
void __init mmp2_clk_init(void)
{
- clkdev_add_table(ARRAY_AND_SIZE(mmp2_clkregs));
+ clkdev_add_table(mmp2_clkregs, ARRAY_SIZE(mmp2_clkregs));
}
@@ -87,5 +87,5 @@ static struct clk_lookup pxa168_clkregs[] = {
void __init pxa168_clk_init(void)
{
- clkdev_add_table(ARRAY_AND_SIZE(pxa168_clkregs));
+ clkdev_add_table(pxa168_clkregs, ARRAY_SIZE(pxa168_clkregs));
}
@@ -63,5 +63,5 @@ static struct clk_lookup pxa910_clkregs[] = {
void __init pxa910_clk_init(void)
{
- clkdev_add_table(ARRAY_AND_SIZE(pxa910_clkregs));
+ clkdev_add_table(pxa910_clkregs, ARRAY_SIZE(pxa910_clkregs));
}
@@ -111,7 +111,7 @@ static struct platform_device smc91x_device = {
static void __init flint_init(void)
{
- mfp_config(ARRAY_AND_SIZE(flint_pin_config));
+ mfp_config(flint_pin_config, ARRAY_SIZE(flint_pin_config));
/* on-chip devices */
mmp2_add_uart(1);
@@ -183,14 +183,15 @@ static void __init select_disp_freq(void)
static void __init gplugd_init(void)
{
- mfp_config(ARRAY_AND_SIZE(gplugd_pin_config));
+ mfp_config(gplugd_pin_config, ARRAY_SIZE(gplugd_pin_config));
select_disp_freq();
/* on-chip devices */
pxa168_add_uart(3);
pxa168_add_ssp(1);
- pxa168_add_twsi(0, NULL, ARRAY_AND_SIZE(gplugd_i2c_board_info));
+ pxa168_add_twsi(0, NULL, gplugd_i2c_board_info,
+ ARRAY_SIZE(gplugd_i2c_board_info));
platform_device_add_data(&pxa168_device_gpio, &pxa168_gpio_pdata,
sizeof(struct pxa_gpio_platform_data));
platform_device_register(&pxa168_device_gpio);
@@ -164,12 +164,13 @@ static struct sdhci_pxa_platdata mmp2_sdh_platdata_mmc0 = {
static void __init jasper_init(void)
{
- mfp_config(ARRAY_AND_SIZE(jasper_pin_config));
+ mfp_config(jasper_pin_config, ARRAY_SIZE(jasper_pin_config));
/* on-chip devices */
mmp2_add_uart(1);
mmp2_add_uart(3);
- mmp2_add_twsi(1, NULL, ARRAY_AND_SIZE(jasper_twsi1_info));
+ mmp2_add_twsi(1, NULL, jasper_twsi1_info,
+ ARRAY_SIZE(jasper_twsi1_info));
platform_device_add_data(&mmp2_device_gpio, &mmp2_gpio_pdata,
sizeof(struct pxa_gpio_platform_data));
platform_device_register(&mmp2_device_gpio);
@@ -94,7 +94,7 @@ static struct platform_device smc91x_device = {
static void __init tavorevb_init(void)
{
- mfp_config(ARRAY_AND_SIZE(tavorevb_pin_config));
+ mfp_config(tavorevb_pin_config, ARRAY_SIZE(tavorevb_pin_config));
/* on-chip devices */
pxa910_add_uart(1);
@@ -82,12 +82,13 @@ static struct i2c_board_info teton_bga_i2c_info[] __initdata = {
static void __init teton_bga_init(void)
{
- mfp_config(ARRAY_AND_SIZE(teton_bga_pin_config));
+ mfp_config(teton_bga_pin_config, ARRAY_SIZE(teton_bga_pin_config));
/* on-chip devices */
pxa168_add_uart(1);
pxa168_add_keypad(&teton_bga_keypad_info);
- pxa168_add_twsi(0, NULL, ARRAY_AND_SIZE(teton_bga_i2c_info));
+ pxa168_add_twsi(0, NULL, teton_bga_i2c_info,
+ ARRAY_SIZE(teton_bga_i2c_info));
platform_device_add_data(&pxa168_device_gpio, &pxa168_gpio_pdata,
sizeof(struct pxa_gpio_platform_data));
platform_device_register(&pxa168_device_gpio);
@@ -273,7 +273,7 @@ static void __init add_disp(void)
static void __init ttc_dkb_init(void)
{
- mfp_config(ARRAY_AND_SIZE(ttc_dkb_pin_config));
+ mfp_config(ttc_dkb_pin_config, ARRAY_SIZE(ttc_dkb_pin_config));
/* on-chip devices */
pxa910_add_uart(1);
@@ -282,10 +282,11 @@ static void __init ttc_dkb_init(void)
#endif
/* off-chip devices */
- pxa910_add_twsi(0, NULL, ARRAY_AND_SIZE(ttc_dkb_i2c_info));
+ pxa910_add_twsi(0, NULL, ttc_dkb_i2c_info,
+ ARRAY_SIZE(ttc_dkb_i2c_info));
platform_device_add_data(&pxa910_device_gpio, &pxa910_gpio_pdata,
sizeof(struct pxa_gpio_platform_data));
- platform_add_devices(ARRAY_AND_SIZE(ttc_dkb_devices));
+ platform_add_devices(ttc_dkb_devices, ARRAY_SIZE(ttc_dkb_devices));
#ifdef CONFIG_USB_MV_UDC
pxa168_device_u2o.dev.platform_data = &ttc_usb_pdata;