sound: Switch back to struct platform_driver::remove()
Subsystems (6)
PATCH 1/1 sound: Switch back to struct platform_driver::remove()
After commit 0edb555a65d1 ("platform: Make platform_driver::remove() return void") .remove() is (again) the right callback to implement for platform drivers.
Convert all platform drivers below sound to use .remove(), with the eventual goal to drop struct platform_driver::remove_new(). As .remove() and .remove_new() have the same prototypes, conversion is done by just changing the structure member name in the driver initializer.
On the way do a few whitespace changes to make indention consistent.
---
Hello,
I did a single patch for all of sound. sound/soc was already converted separately, so isn't mixed in here. While I usually prefer to do one logical change per patch, this seems to be overengineering here as the individual changes are really trivial and shouldn't be much in the way for stable backports. But I'll happily split the patch if you prefer it split.
This is based on today's next, if conflicts arise when you apply it at some later time and don't want to resolve them, feel free to just drop the changes to the conflicting files. I'll notice and followup at a later time then. Or ask me for a fixed resend. (Having said that, I recommend b4 am -3 + git am -3 which should resolve most conflicts just fine.)
Best regards
Uwe
sound/arm/pxa2xx-ac97.c | 2 +- sound/atmel/ac97c.c | 2 +- sound/drivers/mts64.c | 2 +- sound/drivers/pcmtest.c | 2 +- sound/drivers/portman2x4.c | 2 +- sound/mips/hal2.c | 2 +- sound/mips/sgio2audio.c | 4 ++-- sound/oss/dmasound/dmasound_paula.c | 2 +- sound/pci/hda/hda_tegra.c | 2 +- sound/ppc/powermac.c | 2 +- sound/sh/aica.c | 2 +- sound/sh/sh_dac_audio.c | 2 +- sound/sparc/cs4231.c | 2 +- sound/sparc/dbri.c | 2 +- 14 files changed, 15 insertions(+), 15 deletions(-)
sound/arm/pxa2xx-ac97.c +1 -1
@@ -271,7 +271,7 @@ static void pxa2xx_ac97_remove(struct platform_device *dev)static struct platform_driver pxa2xx_ac97_driver = { .probe = pxa2xx_ac97_probe, - .remove_new = pxa2xx_ac97_remove, + .remove = pxa2xx_ac97_remove, .driver = { .name ="pxa2xx-ac97" , .pm = &pxa2xx_ac97_pm_ops,
sound/atmel/ac97c.c +1 -1
@@ -861,7 +861,7 @@ static void atmel_ac97c_remove(struct platform_device *pdev)static struct platform_driver atmel_ac97c_driver = { .probe = atmel_ac97c_probe, - .remove_new = atmel_ac97c_remove, + .remove = atmel_ac97c_remove, .driver = { .name ="atmel_ac97c" , .pm =ATMEL_AC97C_PM_OPS ,
sound/drivers/mts64.c +1 -1
@@ -1008,7 +1008,7 @@ static void snd_mts64_remove(struct platform_device *pdev)static struct platform_driver snd_mts64_driver = { .probe = snd_mts64_probe, - .remove_new = snd_mts64_remove, + .remove = snd_mts64_remove, .driver = { .name =PLATFORM_DRIVER , }
sound/drivers/pcmtest.c +1 -1
@@ -640,7 +640,7 @@ static struct platform_device pcmtst_pdev = {static struct platform_driver pcmtst_pdrv = { .probe = pcmtst_probe, - .remove_new = pdev_remove, + .remove = pdev_remove, .driver = { .name ="pcmtest" , },
sound/drivers/portman2x4.c +1 -1
@@ -794,7 +794,7 @@ static void snd_portman_remove(struct platform_device *pdev)static struct platform_driver snd_portman_driver = { .probe = snd_portman_probe, - .remove_new = snd_portman_remove, + .remove = snd_portman_remove, .driver = { .name =PLATFORM_DRIVER , }
sound/mips/hal2.c +1 -1
@@ -886,7 +886,7 @@ static void hal2_remove(struct platform_device *pdev)static struct platform_driver hal2_driver = { .probe = hal2_probe, - .remove_new = hal2_remove, + .remove = hal2_remove, .driver = { .name ="sgihal2" , }
sound/mips/sgio2audio.c +2 -2
@@ -917,8 +917,8 @@ static void snd_sgio2audio_remove(struct platform_device *pdev)static struct platform_driver sgio2audio_driver = { .probe = snd_sgio2audio_probe, - .remove_new = snd_sgio2audio_remove, - .driver = { + .remove = snd_sgio2audio_remove, + .driver = { .name ="sgio2audio" , } };
sound/oss/dmasound/dmasound_paula.c +1 -1
@@ -732,7 +732,7 @@ static void __exit amiga_audio_remove(struct platform_device *pdev)* triggering a section mismatch warning. */ static struct platform_driver amiga_audio_driver__refdata = { - .remove_new =__exit_p (amiga_audio_remove), + .remove =__exit_p (amiga_audio_remove), .driver = { .name ="amiga-audio" , },
sound/pci/hda/hda_tegra.c +1 -1
@@ -606,7 +606,7 @@ static struct platform_driver tegra_platform_hda = { .of_match_table = hda_tegra_match, }, .probe = hda_tegra_probe, - .remove_new = hda_tegra_remove, + .remove = hda_tegra_remove, .shutdown = hda_tegra_shutdown, };module_platform_driver (tegra_platform_hda);
sound/ppc/powermac.c +1 -1
@@ -160,7 +160,7 @@ static SIMPLE_DEV_PM_OPS(snd_pmac_pm, snd_pmac_driver_suspend, snd_pmac_driver_rstatic struct platform_driver snd_pmac_driver = { .probe = snd_pmac_probe, - .remove_new = snd_pmac_remove, + .remove = snd_pmac_remove, .driver = { .name =SND_PMAC_DRIVER , .pm =SND_PMAC_PM_OPS ,
sound/sh/aica.c +1 -1
@@ -599,7 +599,7 @@ static int snd_aica_probe(struct platform_device *devptr)static struct platform_driver snd_aica_driver = { .probe = snd_aica_probe, - .remove_new = snd_aica_remove, + .remove = snd_aica_remove, .driver = { .name =SND_AICA_DRIVER , },
sound/sh/sh_dac_audio.c +1 -1
@@ -383,7 +383,7 @@ static int snd_sh_dac_probe(struct platform_device *devptr)*/ static struct platform_driver sh_dac_driver = { .probe = snd_sh_dac_probe, - .remove_new = snd_sh_dac_remove, + .remove = snd_sh_dac_remove, .driver = { .name ="dac_audio" , },
sound/sparc/cs4231.c +1 -1
@@ -2107,7 +2107,7 @@ static struct platform_driver cs4231_driver = { .of_match_table = cs4231_match, }, .probe = cs4231_probe, - .remove_new = cs4231_remove, + .remove = cs4231_remove, };module_platform_driver (cs4231_driver);
sound/sparc/dbri.c +1 -1
@@ -2682,7 +2682,7 @@ static struct platform_driver dbri_sbus_driver = { .of_match_table = dbri_match, }, .probe = dbri_probe, - .remove_new = dbri_remove, + .remove = dbri_remove, };module_platform_driver (dbri_sbus_driver);
base-commit: 6fb2fa9805c501d9ade047fc511961f3273cdcb5
Signature · 1 line
2.45.2
Quoted 16 lines · Uwe Kleine-König
After commit
0edb555a65d1("platform: Makeplatform_driver::remove()return void") .remove() is (again) the right callback to implement for platform drivers.Convert all platform drivers below sound to use .remove(), with the eventual goal to drop struct
platform_driver::remove_new(). As .remove() and .remove_new() have the same prototypes, conversion is done by just changing the structure member name in the driver initializer.On the way do a few whitespace changes to make indention consistent.
Signed-off-by Uwe Kleine-König <[email protected]>---
Hello,
Quoted 6 lines
I did a single patch for all of sound.
sound/socwas already converted separately, so isn't mixed in here. While I usually prefer to do one logical change per patch, this seems to be overengineering here as the individual changes are really trivial and shouldn't be much in the way for stable backports. But I'll happily split the patch if you prefer it split.
It's fine to do this in a single shot.
I suppose this can be applied for 6.13, not necessarily to be merged for 6.12-rc?
thanks,
Takashi
Hello Takashi,
Quoted 25 lines · Takashi Iwai
Quoted 16 lines · Uwe Kleine-König
After commit
0edb555a65d1("platform: Makeplatform_driver::remove()return void") .remove() is (again) the right callback to implement for platform drivers.Convert all platform drivers below sound to use .remove(), with the eventual goal to drop struct
platform_driver::remove_new(). As .remove() and .remove_new() have the same prototypes, conversion is done by just changing the structure member name in the driver initializer.On the way do a few whitespace changes to make indention consistent.
Signed-off-by Uwe Kleine-König <[email protected]>---
Hello,Quoted 6 lines
I did a single patch for all of sound.
sound/socwas already converted separately, so isn't mixed in here. While I usually prefer to do one logical change per patch, this seems to be overengineering here as the individual changes are really trivial and shouldn't be much in the way for stable backports. But I'll happily split the patch if you prefer it split.
Quoted 4 lines
It's fine to do this in a single shot.
I suppose this can be applied for 6.13, not necessarily to be merged for 6.12-rc?
Right, this is not critical and I consider this merge window material. 6.13-rc1 is fine.
Thanks
Uwe
Takashi Iwai
AppliedQuoted 5 lines · Uwe Kleine-König
After commit
0edb555a65d1("platform: Makeplatform_driver::remove()return void") .remove() is (again) the right callback to implement for platform drivers.
Quoted 8 lines
Convert all platform drivers below sound to use .remove(), with the eventual goal to drop struct
platform_driver::remove_new(). As .remove() and .remove_new() have the same prototypes, conversion is done by just changing the structure member name in the driver initializer.On the way do a few whitespace changes to make indention consistent.
Signed-off-by Uwe Kleine-König <[email protected]>
Applied to for-next branch now.
thanks,
Takashi