Commit 6bce5efd authored by Petr Kulhavy's avatar Petr Kulhavy Committed by Sekhar Nori

ARM: davinci: remove unused davinci-i2s pdata

The davinci-i2s driver ("davinci-mcbsp") does not use platform
data any longer. Remove the dummy pdata provided by the board
drivers dm355, dm365, dm644x and neuros-osd2.
Signed-off-by: default avatarPetr Kulhavy <petr@barix.com>
Reviewed-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
parent ca5c098f
...@@ -115,8 +115,6 @@ static struct davinci_i2c_platform_data i2c_pdata = { ...@@ -115,8 +115,6 @@ static struct davinci_i2c_platform_data i2c_pdata = {
.scl_pin = 14, .scl_pin = 14,
}; };
static struct snd_platform_data dm355_evm_snd_data;
static int dm355evm_mmc_gpios = -EINVAL; static int dm355evm_mmc_gpios = -EINVAL;
static void dm355evm_mmcsd_gpios(unsigned gpio) static void dm355evm_mmcsd_gpios(unsigned gpio)
...@@ -411,7 +409,7 @@ static __init void dm355_evm_init(void) ...@@ -411,7 +409,7 @@ static __init void dm355_evm_init(void)
ARRAY_SIZE(dm355_evm_spi_info)); ARRAY_SIZE(dm355_evm_spi_info));
/* DM335 EVM uses ASP1; line-out is a stereo mini-jack */ /* DM335 EVM uses ASP1; line-out is a stereo mini-jack */
dm355_init_asp1(ASP1_TX_EVT_EN | ASP1_RX_EVT_EN, &dm355_evm_snd_data); dm355_init_asp1(ASP1_TX_EVT_EN | ASP1_RX_EVT_EN);
} }
MACHINE_START(DAVINCI_DM355_EVM, "DaVinci DM355 EVM") MACHINE_START(DAVINCI_DM355_EVM, "DaVinci DM355 EVM")
......
...@@ -176,10 +176,6 @@ static struct at24_platform_data eeprom_info = { ...@@ -176,10 +176,6 @@ static struct at24_platform_data eeprom_info = {
.context = (void *)0x7f00, .context = (void *)0x7f00,
}; };
static struct snd_platform_data dm365_evm_snd_data __maybe_unused = {
.asp_chan_q = EVENTQ_3,
};
static struct i2c_board_info i2c_info[] = { static struct i2c_board_info i2c_info[] = {
{ {
I2C_BOARD_INFO("24c256", 0x50), I2C_BOARD_INFO("24c256", 0x50),
...@@ -763,7 +759,7 @@ static __init void dm365_evm_init(void) ...@@ -763,7 +759,7 @@ static __init void dm365_evm_init(void)
evm_init_cpld(); evm_init_cpld();
#ifdef CONFIG_SND_DM365_AIC3X_CODEC #ifdef CONFIG_SND_DM365_AIC3X_CODEC
dm365_init_asp(&dm365_evm_snd_data); dm365_init_asp();
#elif defined(CONFIG_SND_DM365_VOICE_CODEC) #elif defined(CONFIG_SND_DM365_VOICE_CODEC)
dm365_init_vc(&dm365_evm_snd_data); dm365_init_vc(&dm365_evm_snd_data);
#endif #endif
......
...@@ -264,8 +264,6 @@ static struct platform_device rtc_dev = { ...@@ -264,8 +264,6 @@ static struct platform_device rtc_dev = {
.id = -1, .id = -1,
}; };
static struct snd_platform_data dm644x_evm_snd_data;
/*----------------------------------------------------------------------*/ /*----------------------------------------------------------------------*/
#ifdef CONFIG_I2C #ifdef CONFIG_I2C
/* /*
...@@ -799,7 +797,7 @@ static __init void davinci_evm_init(void) ...@@ -799,7 +797,7 @@ static __init void davinci_evm_init(void)
dm644x_init_video(&dm644xevm_capture_cfg, &dm644xevm_display_cfg); dm644x_init_video(&dm644xevm_capture_cfg, &dm644xevm_display_cfg);
davinci_serial_init(dm644x_serial_device); davinci_serial_init(dm644x_serial_device);
dm644x_init_asp(&dm644x_evm_snd_data); dm644x_init_asp();
/* irlml6401 switches over 1A, in under 8 msec */ /* irlml6401 switches over 1A, in under 8 msec */
davinci_setup_usb(1000, 8); davinci_setup_usb(1000, 8);
......
...@@ -127,8 +127,6 @@ static struct platform_device davinci_fb_device = { ...@@ -127,8 +127,6 @@ static struct platform_device davinci_fb_device = {
.num_resources = 0, .num_resources = 0,
}; };
static struct snd_platform_data dm644x_ntosd2_snd_data;
static struct gpio_led ntosd2_leds[] = { static struct gpio_led ntosd2_leds[] = {
{ .name = "led1_green", .gpio = GPIO(10), }, { .name = "led1_green", .gpio = GPIO(10), },
{ .name = "led1_red", .gpio = GPIO(11), }, { .name = "led1_red", .gpio = GPIO(11), },
...@@ -200,7 +198,7 @@ static __init void davinci_ntosd2_init(void) ...@@ -200,7 +198,7 @@ static __init void davinci_ntosd2_init(void)
ARRAY_SIZE(davinci_ntosd2_devices)); ARRAY_SIZE(davinci_ntosd2_devices));
davinci_serial_init(dm644x_serial_device); davinci_serial_init(dm644x_serial_device);
dm644x_init_asp(&dm644x_ntosd2_snd_data); dm644x_init_asp();
soc_info->emac_pdata->phy_id = NEUROS_OSD2_PHY_ID; soc_info->emac_pdata->phy_id = NEUROS_OSD2_PHY_ID;
......
...@@ -85,13 +85,13 @@ int davinci_init_wdt(void); ...@@ -85,13 +85,13 @@ int davinci_init_wdt(void);
void dm355_init(void); void dm355_init(void);
void dm355_init_spi0(unsigned chipselect_mask, void dm355_init_spi0(unsigned chipselect_mask,
const struct spi_board_info *info, unsigned len); const struct spi_board_info *info, unsigned len);
void dm355_init_asp1(u32 evt_enable, struct snd_platform_data *pdata); void dm355_init_asp1(u32 evt_enable);
int dm355_init_video(struct vpfe_config *, struct vpbe_config *); int dm355_init_video(struct vpfe_config *, struct vpbe_config *);
int dm355_gpio_register(void); int dm355_gpio_register(void);
/* DM365 function declarations */ /* DM365 function declarations */
void dm365_init(void); void dm365_init(void);
void dm365_init_asp(struct snd_platform_data *pdata); void dm365_init_asp(void);
void dm365_init_vc(struct snd_platform_data *pdata); void dm365_init_vc(struct snd_platform_data *pdata);
void dm365_init_ks(struct davinci_ks_platform_data *pdata); void dm365_init_ks(struct davinci_ks_platform_data *pdata);
void dm365_init_rtc(void); void dm365_init_rtc(void);
...@@ -102,7 +102,7 @@ int dm365_gpio_register(void); ...@@ -102,7 +102,7 @@ int dm365_gpio_register(void);
/* DM644x function declarations */ /* DM644x function declarations */
void dm644x_init(void); void dm644x_init(void);
void dm644x_init_asp(struct snd_platform_data *pdata); void dm644x_init_asp(void);
int dm644x_init_video(struct vpfe_config *, struct vpbe_config *); int dm644x_init_video(struct vpfe_config *, struct vpbe_config *);
int dm644x_gpio_register(void); int dm644x_gpio_register(void);
......
...@@ -1035,7 +1035,7 @@ static struct davinci_soc_info davinci_soc_info_dm355 = { ...@@ -1035,7 +1035,7 @@ static struct davinci_soc_info davinci_soc_info_dm355 = {
.sram_len = SZ_32K, .sram_len = SZ_32K,
}; };
void __init dm355_init_asp1(u32 evt_enable, struct snd_platform_data *pdata) void __init dm355_init_asp1(u32 evt_enable)
{ {
/* we don't use ASP1 IRQs, or we'd need to mux them ... */ /* we don't use ASP1 IRQs, or we'd need to mux them ... */
if (evt_enable & ASP1_TX_EVT_EN) if (evt_enable & ASP1_TX_EVT_EN)
...@@ -1044,7 +1044,6 @@ void __init dm355_init_asp1(u32 evt_enable, struct snd_platform_data *pdata) ...@@ -1044,7 +1044,6 @@ void __init dm355_init_asp1(u32 evt_enable, struct snd_platform_data *pdata)
if (evt_enable & ASP1_RX_EVT_EN) if (evt_enable & ASP1_RX_EVT_EN)
davinci_cfg_reg(DM355_EVT9_ASP1_RX); davinci_cfg_reg(DM355_EVT9_ASP1_RX);
dm355_asp1_device.dev.platform_data = pdata;
platform_device_register(&dm355_asp1_device); platform_device_register(&dm355_asp1_device);
} }
......
...@@ -1138,7 +1138,7 @@ static struct davinci_soc_info davinci_soc_info_dm365 = { ...@@ -1138,7 +1138,7 @@ static struct davinci_soc_info davinci_soc_info_dm365 = {
.sram_len = SZ_32K, .sram_len = SZ_32K,
}; };
void __init dm365_init_asp(struct snd_platform_data *pdata) void __init dm365_init_asp(void)
{ {
davinci_cfg_reg(DM365_MCBSP0_BDX); davinci_cfg_reg(DM365_MCBSP0_BDX);
davinci_cfg_reg(DM365_MCBSP0_X); davinci_cfg_reg(DM365_MCBSP0_X);
...@@ -1148,7 +1148,6 @@ void __init dm365_init_asp(struct snd_platform_data *pdata) ...@@ -1148,7 +1148,6 @@ void __init dm365_init_asp(struct snd_platform_data *pdata)
davinci_cfg_reg(DM365_MCBSP0_BFSR); davinci_cfg_reg(DM365_MCBSP0_BFSR);
davinci_cfg_reg(DM365_EVT2_ASP_TX); davinci_cfg_reg(DM365_EVT2_ASP_TX);
davinci_cfg_reg(DM365_EVT3_ASP_RX); davinci_cfg_reg(DM365_EVT3_ASP_RX);
dm365_asp_device.dev.platform_data = pdata;
platform_device_register(&dm365_asp_device); platform_device_register(&dm365_asp_device);
} }
......
...@@ -921,10 +921,9 @@ static struct davinci_soc_info davinci_soc_info_dm644x = { ...@@ -921,10 +921,9 @@ static struct davinci_soc_info davinci_soc_info_dm644x = {
.sram_len = SZ_16K, .sram_len = SZ_16K,
}; };
void __init dm644x_init_asp(struct snd_platform_data *pdata) void __init dm644x_init_asp(void)
{ {
davinci_cfg_reg(DM644X_MCBSP); davinci_cfg_reg(DM644X_MCBSP);
dm644x_asp_device.dev.platform_data = pdata;
platform_device_register(&dm644x_asp_device); platform_device_register(&dm644x_asp_device);
} }
......
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