ARM: davinci: remove unused davinci-i2s pdata
authorPetr Kulhavy <petr@barix.com>
Mon, 9 May 2016 13:59:48 +0000 (15:59 +0200)
committerSekhar Nori <nsekhar@ti.com>
Fri, 24 Jun 2016 09:58:30 +0000 (15:28 +0530)
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: Petr Kulhavy <petr@barix.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/board-dm355-evm.c
arch/arm/mach-davinci/board-dm365-evm.c
arch/arm/mach-davinci/board-dm644x-evm.c
arch/arm/mach-davinci/board-neuros-osd2.c
arch/arm/mach-davinci/davinci.h
arch/arm/mach-davinci/dm355.c
arch/arm/mach-davinci/dm365.c
arch/arm/mach-davinci/dm644x.c

index 1844076f64030c94ecd13f31b7c6ff85bd9deae1..18296a99c4d281b2e89b60d1f98ccbcac5805c41 100644 (file)
@@ -115,8 +115,6 @@ static struct davinci_i2c_platform_data i2c_pdata = {
        .scl_pin        = 14,
 };
 
-static struct snd_platform_data dm355_evm_snd_data;
-
 static int dm355evm_mmc_gpios = -EINVAL;
 
 static void dm355evm_mmcsd_gpios(unsigned gpio)
@@ -411,7 +409,7 @@ static __init void dm355_evm_init(void)
                        ARRAY_SIZE(dm355_evm_spi_info));
 
        /* 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")
index f073518f621a744dcd00c9befb6abfc354a9c4ce..e832949bc767b4d1d20e5c9946a416ccfb052a9d 100644 (file)
@@ -176,10 +176,6 @@ static struct at24_platform_data eeprom_info = {
        .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[] = {
        {
                I2C_BOARD_INFO("24c256", 0x50),
@@ -763,7 +759,7 @@ static __init void dm365_evm_init(void)
        evm_init_cpld();
 
 #ifdef CONFIG_SND_DM365_AIC3X_CODEC
-       dm365_init_asp(&dm365_evm_snd_data);
+       dm365_init_asp();
 #elif defined(CONFIG_SND_DM365_VOICE_CODEC)
        dm365_init_vc(&dm365_evm_snd_data);
 #endif
index 68cc099078289262d938e974b7aa7ad77ac12ddc..96a9528e373ecb05e3d22c3794262c90d4c283a2 100644 (file)
@@ -264,8 +264,6 @@ static struct platform_device rtc_dev = {
        .id             = -1,
 };
 
-static struct snd_platform_data dm644x_evm_snd_data;
-
 /*----------------------------------------------------------------------*/
 #ifdef CONFIG_I2C
 /*
@@ -799,7 +797,7 @@ static __init void davinci_evm_init(void)
        dm644x_init_video(&dm644xevm_capture_cfg, &dm644xevm_display_cfg);
 
        davinci_serial_init(dm644x_serial_device);
-       dm644x_init_asp(&dm644x_evm_snd_data);
+       dm644x_init_asp();
 
        /* irlml6401 switches over 1A, in under 8 msec */
        davinci_setup_usb(1000, 8);
index 8fcdcf87c47c7a06bd9c86ea18697e7b65be9d9c..ad10017203c1a0ccac0382d5e1c3c81ac6ca7d4d 100644 (file)
@@ -127,8 +127,6 @@ static struct platform_device davinci_fb_device = {
        .num_resources = 0,
 };
 
-static struct snd_platform_data dm644x_ntosd2_snd_data;
-
 static struct gpio_led ntosd2_leds[] = {
        { .name = "led1_green", .gpio = GPIO(10), },
        { .name = "led1_red",   .gpio = GPIO(11), },
@@ -200,7 +198,7 @@ static __init void davinci_ntosd2_init(void)
                                ARRAY_SIZE(davinci_ntosd2_devices));
 
        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;
 
index 4ffc37accce074fa639c1b6821f50c8c45455b47..d1f8e29f1e3040f0fa93bd01c32cbeac758adbc5 100644 (file)
@@ -85,13 +85,13 @@ int davinci_init_wdt(void);
 void dm355_init(void);
 void dm355_init_spi0(unsigned chipselect_mask,
                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_gpio_register(void);
 
 /* DM365 function declarations */
 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_ks(struct davinci_ks_platform_data *pdata);
 void dm365_init_rtc(void);
@@ -102,7 +102,7 @@ int dm365_gpio_register(void);
 
 /* DM644x function declarations */
 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_gpio_register(void);
 
index 5a19cca7ed6a0378b75c6043b77b2a0c3d79d156..d33322ddedab2e662af48a05474eb295cdd5f779 100644 (file)
@@ -1035,7 +1035,7 @@ static struct davinci_soc_info davinci_soc_info_dm355 = {
        .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 ... */
        if (evt_enable & ASP1_TX_EVT_EN)
@@ -1044,7 +1044,6 @@ void __init dm355_init_asp1(u32 evt_enable, struct snd_platform_data *pdata)
        if (evt_enable & ASP1_RX_EVT_EN)
                davinci_cfg_reg(DM355_EVT9_ASP1_RX);
 
-       dm355_asp1_device.dev.platform_data = pdata;
        platform_device_register(&dm355_asp1_device);
 }
 
index 8aa004b02fe90f9161a0284804a4e405b02b3d9e..95fbfd962c791d8c096aee7489aaa7d487afc907 100644 (file)
@@ -1138,7 +1138,7 @@ static struct davinci_soc_info davinci_soc_info_dm365 = {
        .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_X);
@@ -1148,7 +1148,6 @@ void __init dm365_init_asp(struct snd_platform_data *pdata)
        davinci_cfg_reg(DM365_MCBSP0_BFSR);
        davinci_cfg_reg(DM365_EVT2_ASP_TX);
        davinci_cfg_reg(DM365_EVT3_ASP_RX);
-       dm365_asp_device.dev.platform_data = pdata;
        platform_device_register(&dm365_asp_device);
 }
 
index 0afa279ec460b47c1466d877b9950cc85b115429..b437c3730f6540d0dc07fc1299deb71b2dfffc9d 100644 (file)
@@ -921,10 +921,9 @@ static struct davinci_soc_info davinci_soc_info_dm644x = {
        .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);
-       dm644x_asp_device.dev.platform_data = pdata;
        platform_device_register(&dm644x_asp_device);
 }