Removes unused platform device for osk5912
Subsystems (3)
PATCH 1/1 Removes unused platform device for osk5912
From: Arun KS <[email protected]>
This patch removes platform device used my ALSA driver, which is now replaced with ASoC driver.
--- arch/arm/mach-omap1/board-osk.c | 37 ------------------------------------- 1 files changed, 0 insertions(+), 37 deletions(-)
arch/arm/mach-omap1/board-osk.c +0 -37
@@ -141,47 +141,10 @@ static struct platform_device osk5912_cf_device = { .resource = osk5912_cf_resources, }; -#define DEFAULT_BITPERSAMPLE 16 - -static struct omap_mcbsp_reg_cfg mcbsp_regs = { - .spcr2 =FREE |FRST |GRST |XRST |XINTM (3 ), - .spcr1 =RINTM (3 ) |RRST , - .rcr2 =RPHASE |RFRLEN2 (OMAP_MCBSP_WORD_8 ) | -RWDLEN2 (OMAP_MCBSP_WORD_16 ) |RDATDLY (0 ), - .rcr1 =RFRLEN1 (OMAP_MCBSP_WORD_8 ) |RWDLEN1 (OMAP_MCBSP_WORD_16 ), - .xcr2 =XPHASE |XFRLEN2 (OMAP_MCBSP_WORD_8 ) | -XWDLEN2 (OMAP_MCBSP_WORD_16 ) |XDATDLY (0 ) |XFIG , - .xcr1 =XFRLEN1 (OMAP_MCBSP_WORD_8 ) |XWDLEN1 (OMAP_MCBSP_WORD_16 ), - .srgr1 =FWID (DEFAULT_BITPERSAMPLE -1 ), - .srgr2 =GSYNC |CLKSP |FSGM |FPER (DEFAULT_BITPERSAMPLE *2 -1 ), -/*.pcr0 = FSXM | FSRM | CLKXM | CLKRM | CLKXP | CLKRP,*/ /* mcbsp: master */ - .pcr0 =CLKXP |CLKRP ,/* mcbsp: slave */ -}; - -static struct omap_alsa_codec_config alsa_config = { - .name ="OSK AIC23" , - .mcbsp_regs_alsa = &mcbsp_regs, - .codec_configure_dev =NULL ,/* aic23_configure, */ - .codec_set_samplerate =NULL ,/* aic23_set_samplerate, */ - .codec_clock_setup =NULL ,/* aic23_clock_setup, */ - .codec_clock_on =NULL ,/* aic23_clock_on, */ - .codec_clock_off =NULL ,/* aic23_clock_off, */ - .get_default_samplerate =NULL ,/* aic23_get_default_samplerate, */ -}; - -static struct platform_device osk5912_mcbsp1_device = { - .name ="omap_alsa_mcbsp" , - .id =1 , - .dev = { - .platform_data = &alsa_config, - }, -}; -static struct platform_device *osk5912_devices[]__initdata = { &osk5912_flash_device, &osk5912_smc91x_device, &osk5912_cf_device, - &osk5912_mcbsp1_device, };static struct gpio_led tps_leds[] = {
Signature · 1 line
1.5.6.3
Tony Lindgren
reviewerQuoted 4 lines · * [email protected] <[email protected]> [081204 21:53]:
From: Arun KS <[email protected]>
This patch removes platform device used my ALSA driver, which is now replaced with ASoC driver.
Thanks, I'll apply this to linux-omap tree. Will also expand it to delete similar code from other board files for the mainline queue. Some of the includes can disappear with this patch, BTW.
Tony
Quoted 60 lines
Signed-off-by Arun KS <[email protected]>--- arch/arm/mach-omap1/board-osk.c | 37 ------------------------------------- 1 files changed, 0 insertions(+), 37 deletions(-)arch/arm/mach-omap1/board-osk.c +0
-37@@ -141,47 +141,10 @@ static struct platform_device osk5912_cf_device = { .resource = osk5912_cf_resources, }; -#define DEFAULT_BITPERSAMPLE 16 - -static struct omap_mcbsp_reg_cfg mcbsp_regs = { - .spcr2 =FREE |FRST |GRST |XRST |XINTM (3 ), - .spcr1 =RINTM (3 ) |RRST , - .rcr2 =RPHASE |RFRLEN2 (OMAP_MCBSP_WORD_8 ) | -RWDLEN2 (OMAP_MCBSP_WORD_16 ) |RDATDLY (0 ), - .rcr1 =RFRLEN1 (OMAP_MCBSP_WORD_8 ) |RWDLEN1 (OMAP_MCBSP_WORD_16 ), - .xcr2 =XPHASE |XFRLEN2 (OMAP_MCBSP_WORD_8 ) | -XWDLEN2 (OMAP_MCBSP_WORD_16 ) |XDATDLY (0 ) |XFIG , - .xcr1 =XFRLEN1 (OMAP_MCBSP_WORD_8 ) |XWDLEN1 (OMAP_MCBSP_WORD_16 ), - .srgr1 =FWID (DEFAULT_BITPERSAMPLE -1 ), - .srgr2 =GSYNC |CLKSP |FSGM |FPER (DEFAULT_BITPERSAMPLE *2 -1 ), -/*.pcr0 = FSXM | FSRM | CLKXM | CLKRM | CLKXP | CLKRP,*/ /* mcbsp: master */ - .pcr0 =CLKXP |CLKRP ,/* mcbsp: slave */ -}; - -static struct omap_alsa_codec_config alsa_config = { - .name ="OSK AIC23" , - .mcbsp_regs_alsa = &mcbsp_regs, - .codec_configure_dev =NULL ,/* aic23_configure, */ - .codec_set_samplerate =NULL ,/* aic23_set_samplerate, */ - .codec_clock_setup =NULL ,/* aic23_clock_setup, */ - .codec_clock_on =NULL ,/* aic23_clock_on, */ - .codec_clock_off =NULL ,/* aic23_clock_off, */ - .get_default_samplerate =NULL ,/* aic23_get_default_samplerate, */ -}; - -static struct platform_device osk5912_mcbsp1_device = { - .name ="omap_alsa_mcbsp" , - .id =1 , - .dev = { - .platform_data = &alsa_config, - }, -}; -static struct platform_device *osk5912_devices[]__initdata = { &osk5912_flash_device, &osk5912_smc91x_device, &osk5912_cf_device, - &osk5912_mcbsp1_device, };static struct gpio_led tps_leds[] = {Signature · 1 line
1.5.6.3
Quoted 7 lines · Tony Lindgren
Quoted 3 lines
This patch removes platform device used my ALSA driver, which is now replaced with ASoC driver.
Thanks, I'll apply this to linux-omap tree. Will also expand it to delete similar code from other board files for the mainline queue. Some of the includes can disappear with this patch, BTW.
Maybe drivers/i2c/chips/tlv320aic23.c should be removed too. I think that's a remnant of now-removed OSS infrastructure;
- Dave
Tony Lindgren
reviewerQuoted 11 lines · David Brownell
Quoted 7 lines · Tony Lindgren
Quoted 3 lines
This patch removes platform device used my ALSA driver, which is now replaced with ASoC driver.
Thanks, I'll apply this to linux-omap tree. Will also expand it to delete similar code from other board files for the mainline queue. Some of the includes can disappear with this patch, BTW.
Maybe
drivers/i2c/chips/tlv320aic23.cshould be removed too. I think that's a remnant of now-removed OSS infrastructure;
Great, done!
Tony