Blackfin arch: drop CONFIG_I2C_BOARDINFO ifdefs
Drop CONFIG_I2C_BOARDINFO ifdefs as the common i2c header handles this already by stubbing things out Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
This commit is contained in:
Родитель
a6595bf04b
Коммит
2678479c33
|
@ -473,7 +473,6 @@ static struct platform_device i2c_bfin_twi_device = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
||||||
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
|
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
|
||||||
{
|
{
|
||||||
|
@ -487,7 +486,6 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
||||||
static struct platform_device bfin_sport0_uart_device = {
|
static struct platform_device bfin_sport0_uart_device = {
|
||||||
|
@ -632,12 +630,8 @@ static struct platform_device *stamp_devices[] __initdata = {
|
||||||
static int __init ezbrd_init(void)
|
static int __init ezbrd_init(void)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
i2c_register_board_info(0, bfin_i2c_board_info,
|
i2c_register_board_info(0, bfin_i2c_board_info,
|
||||||
ARRAY_SIZE(bfin_i2c_board_info));
|
ARRAY_SIZE(bfin_i2c_board_info));
|
||||||
#endif
|
|
||||||
|
|
||||||
platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
||||||
spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
|
spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -793,7 +793,6 @@ static struct platform_device i2c_bfin_twi_device = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
||||||
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
|
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
|
||||||
{
|
{
|
||||||
|
@ -809,7 +808,6 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
||||||
static struct platform_device bfin_sport0_uart_device = {
|
static struct platform_device bfin_sport0_uart_device = {
|
||||||
|
@ -971,12 +969,8 @@ static struct platform_device *stamp_devices[] __initdata = {
|
||||||
static int __init stamp_init(void)
|
static int __init stamp_init(void)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
i2c_register_board_info(0, bfin_i2c_board_info,
|
i2c_register_board_info(0, bfin_i2c_board_info,
|
||||||
ARRAY_SIZE(bfin_i2c_board_info));
|
ARRAY_SIZE(bfin_i2c_board_info));
|
||||||
#endif
|
|
||||||
|
|
||||||
platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
||||||
spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
|
spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -590,7 +590,6 @@ static struct platform_device i2c_bfin_twi_device = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
||||||
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
|
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
|
||||||
{
|
{
|
||||||
|
@ -604,7 +603,6 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
||||||
static struct platform_device bfin_sport0_uart_device = {
|
static struct platform_device bfin_sport0_uart_device = {
|
||||||
|
@ -767,12 +765,8 @@ static struct platform_device *stamp_devices[] __initdata = {
|
||||||
static int __init stamp_init(void)
|
static int __init stamp_init(void)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
i2c_register_board_info(0, bfin_i2c_board_info,
|
i2c_register_board_info(0, bfin_i2c_board_info,
|
||||||
ARRAY_SIZE(bfin_i2c_board_info));
|
ARRAY_SIZE(bfin_i2c_board_info));
|
||||||
#endif
|
|
||||||
|
|
||||||
platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
||||||
spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
|
spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -830,7 +830,6 @@ static struct platform_device i2c_bfin_twi_device = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
||||||
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
|
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
|
||||||
{
|
{
|
||||||
|
@ -844,7 +843,6 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
||||||
static struct platform_device bfin_sport0_uart_device = {
|
static struct platform_device bfin_sport0_uart_device = {
|
||||||
|
@ -1051,12 +1049,8 @@ static struct platform_device *stamp_devices[] __initdata = {
|
||||||
static int __init stamp_init(void)
|
static int __init stamp_init(void)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
i2c_register_board_info(0, bfin_i2c_board_info,
|
i2c_register_board_info(0, bfin_i2c_board_info,
|
||||||
ARRAY_SIZE(bfin_i2c_board_info));
|
ARRAY_SIZE(bfin_i2c_board_info));
|
||||||
#endif
|
|
||||||
|
|
||||||
platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
||||||
spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
|
spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -309,10 +309,8 @@ static struct platform_device i2c_gpio_device = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
static const unsigned int cclk_vlev_datasheet[] =
|
static const unsigned int cclk_vlev_datasheet[] =
|
||||||
{
|
{
|
||||||
|
@ -390,10 +388,8 @@ static int __init blackstamp_init(void)
|
||||||
|
|
||||||
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
i2c_register_board_info(0, bfin_i2c_board_info,
|
i2c_register_board_info(0, bfin_i2c_board_info,
|
||||||
ARRAY_SIZE(bfin_i2c_board_info));
|
ARRAY_SIZE(bfin_i2c_board_info));
|
||||||
#endif
|
|
||||||
|
|
||||||
ret = platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
ret = platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
|
|
@ -441,7 +441,6 @@ static struct platform_device i2c_gpio_device = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
||||||
#if defined(CONFIG_JOYSTICK_AD7142) || defined(CONFIG_JOYSTICK_AD7142_MODULE)
|
#if defined(CONFIG_JOYSTICK_AD7142) || defined(CONFIG_JOYSTICK_AD7142_MODULE)
|
||||||
{
|
{
|
||||||
|
@ -461,7 +460,6 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
static const unsigned int cclk_vlev_datasheet[] =
|
static const unsigned int cclk_vlev_datasheet[] =
|
||||||
{
|
{
|
||||||
|
@ -550,10 +548,8 @@ static int __init stamp_init(void)
|
||||||
|
|
||||||
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
i2c_register_board_info(0, bfin_i2c_board_info,
|
i2c_register_board_info(0, bfin_i2c_board_info,
|
||||||
ARRAY_SIZE(bfin_i2c_board_info));
|
ARRAY_SIZE(bfin_i2c_board_info));
|
||||||
#endif
|
|
||||||
|
|
||||||
ret = platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
ret = platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
|
|
@ -1068,7 +1068,6 @@ static struct adp5588_kpad_platform_data adp5588_kpad_data = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
||||||
#if defined(CONFIG_JOYSTICK_AD7142) || defined(CONFIG_JOYSTICK_AD7142_MODULE)
|
#if defined(CONFIG_JOYSTICK_AD7142) || defined(CONFIG_JOYSTICK_AD7142_MODULE)
|
||||||
{
|
{
|
||||||
|
@ -1102,7 +1101,6 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
||||||
static struct platform_device bfin_sport0_uart_device = {
|
static struct platform_device bfin_sport0_uart_device = {
|
||||||
|
@ -1284,12 +1282,8 @@ static struct platform_device *stamp_devices[] __initdata = {
|
||||||
static int __init stamp_init(void)
|
static int __init stamp_init(void)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
i2c_register_board_info(0, bfin_i2c_board_info,
|
i2c_register_board_info(0, bfin_i2c_board_info,
|
||||||
ARRAY_SIZE(bfin_i2c_board_info));
|
ARRAY_SIZE(bfin_i2c_board_info));
|
||||||
#endif
|
|
||||||
|
|
||||||
bfin_plat_nand_init();
|
bfin_plat_nand_init();
|
||||||
platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
||||||
spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
|
spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
|
||||||
|
|
|
@ -781,7 +781,6 @@ static struct platform_device i2c_bfin_twi1_device = {
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
static struct i2c_board_info __initdata bfin_i2c_board_info0[] = {
|
static struct i2c_board_info __initdata bfin_i2c_board_info0[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -800,7 +799,6 @@ static struct i2c_board_info __initdata bfin_i2c_board_info1[] = {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
|
#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
|
||||||
#include <linux/gpio_keys.h>
|
#include <linux/gpio_keys.h>
|
||||||
|
@ -956,13 +954,11 @@ static int __init ezkit_init(void)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_BOARDINFO
|
|
||||||
i2c_register_board_info(0, bfin_i2c_board_info0,
|
i2c_register_board_info(0, bfin_i2c_board_info0,
|
||||||
ARRAY_SIZE(bfin_i2c_board_info0));
|
ARRAY_SIZE(bfin_i2c_board_info0));
|
||||||
#if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */
|
#if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */
|
||||||
i2c_register_board_info(1, bfin_i2c_board_info1,
|
i2c_register_board_info(1, bfin_i2c_board_info1,
|
||||||
ARRAY_SIZE(bfin_i2c_board_info1));
|
ARRAY_SIZE(bfin_i2c_board_info1));
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
platform_add_devices(ezkit_devices, ARRAY_SIZE(ezkit_devices));
|
platform_add_devices(ezkit_devices, ARRAY_SIZE(ezkit_devices));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче