mirror of
https://github.com/torvalds/linux.git
synced 2025-01-01 15:51:46 +00:00
ALSA/ASoC: Convert to platform remove callback
Merge series from Uwe Kleine-König <u.kleine-koenig@pengutronix.de>:
Hello,
this series adapts the platform drivers below sound/ to use the .remove_new()
callback. Compared to the traditional .remove() callback .remove_new() returns
no value. This is a good thing because the driver core doesn't (and cannot)
cope for errors during remove. The only effect of a non-zero return value in
.remove() is that the driver core emits a warning. The device is removed anyhow
and an early return from .remove() usually yields a resource leak.
By changing the remove callback to return void driver authors cannot
reasonably assume any more that there is some kind of cleanup later.
The first two patches simplify a driver each to return zero unconditionally,
and then all drivers are trivially converted to .remove_new().
There are nearly no interdependencies in this patch set---only 1 <- 11 and
2 <- 16. So even if some individual problems are found (I don't expect that),
the other patches can (and from my POV should) still be applied.
Best regards
Uwe
Uwe Kleine-König (173):
ALSA: sh: aica: Drop if blocks with always false condition
ASoC: amd: acp: rembrandt: Drop if blocks with always false condition
ALSA: pxa2xx: Convert to platform remove callback returning void
ALSA: atmel: ac97: Convert to platform remove callback returning void
ALSA: mts64: Convert to platform remove callback returning void
ALSA: portman2x4: Convert to platform remove callback returning void
ALSA: mips/hal2: Convert to platform remove callback returning void
ALSA: mips/sgio2audio: Convert to platform remove callback returning
void
ALSA: hda/tegra: Convert to platform remove callback returning void
ALSA: ppc/powermac: Convert to platform remove callback returning void
ALSA: sh: aica: Convert to platform remove callback returning void
ALSA: sh_dac_audio: Convert to platform remove callback returning void
ASoC: adi: axi-i2s: Convert to platform remove callback returning void
ASoC: adi: axi-spdif: Convert to platform remove callback returning
void
ASoC: amd: acp-pcm-dma: Convert to platform remove callback returning
void
ASoC: amd: acp: rembrandt: Convert to platform remove callback
returning void
ASoC: amd: acp: renoir: Convert to platform remove callback returning
void
ASoC: amd: ps: Convert to platform remove callback returning void
ASoC: amd: raven: acp3x-pcm-dma: Convert to platform remove callback
returning void
ASoC: amd: raven: acp3x-pdm-dma: Convert to platform remove callback
returning void
ASoC: amd: vangogh: acp5x-pcm-dma: Convert to platform remove callback
returning void
ASoC: amd: yc: acp6x-pdm-dma: Convert to platform remove callback
returning void
ASoC: apple: mca: Convert to platform remove callback returning void
ASoC: atmel: atmel-i2s: Convert to platform remove callback returning
void
ASoC: atmel: atmel_wm8904: Convert to platform remove callback
returning void
ASoC: atmel: mchp-i2s-mcc: Convert to platform remove callback
returning void
ASoC: atmel: mchp-pdmc: Convert to platform remove callback returning
void
ASoC: atmel: mchp-spdifrx: Convert to platform remove callback
returning void
ASoC: atmel: mchp-spdiftx: Convert to platform remove callback
returning void
ASoC: atmel: mikroe-proto: Convert to platform remove callback
returning void
ASoC: atmel: sam9g20_wm8731: Convert to platform remove callback
returning void
ASoC: atmel: sam9x5_wm8731: Convert to platform remove callback
returning void
ASoC: atmel: tse850-pcm5142: Convert to platform remove callback
returning void
ASoC: au1x: ac97c: Convert to platform remove callback returning void
ASoC: au1x: i2sc: Convert to platform remove callback returning void
ASoC: au1x: psc-ac97: Convert to platform remove callback returning
void
ASoC: au1x: psc-i2s: Convert to platform remove callback returning
void
ASoC: bcm: bcm63xx-i2s-whistler: Convert to platform remove callback
returning void
ASoC: bcm: cygnus-ssp: Convert to platform remove callback returning
void
ASoC: cirrus: edb93xx: Convert to platform remove callback returning
void
ASoC: cirrus: ep93xx-i2s: Convert to platform remove callback
returning void
ASoC: codecs: cs47l15: Convert to platform remove callback returning
void
ASoC: codecs: cs47l24: Convert to platform remove callback returning
void
ASoC: codecs: cs47l35: Convert to platform remove callback returning
void
ASoC: codecs: cs47l85: Convert to platform remove callback returning
void
ASoC: codecs: cs47l90: Convert to platform remove callback returning
void
ASoC: codecs: cs47l92: Convert to platform remove callback returning
void
ASoC: codecs: inno_rk3036: Convert to platform remove callback
returning void
ASoC: codecs: lpass-rx-macro: Convert to platform remove callback
returning void
ASoC: codecs: lpass-tx-macro: Convert to platform remove callback
returning void
ASoC: codecs: lpass-va-macro: Convert to platform remove callback
returning void
ASoC: codecs: lpass-wsa-macro: Convert to platform remove callback
returning void
ASoC: codecs: msm8916-wcd-analog: Convert to platform remove callback
returning void
ASoC: codecs: msm8916-wcd-digital: Convert to platform remove callback
returning void
ASoC: codecs: rk817_codec: Convert to platform remove callback
returning void
ASoC: codecs: wcd938x: Convert to platform remove callback returning
void
ASoC: codecs: wm5102: Convert to platform remove callback returning
void
ASoC: codecs: wm5110: Convert to platform remove callback returning
void
ASoC: codecs: wm8994: Convert to platform remove callback returning
void
ASoC: codecs: wm8997: Convert to platform remove callback returning
void
ASoC: codecs: wm8998: Convert to platform remove callback returning
void
ASoC: dwc: dwc-i2s: Convert to platform remove callback returning void
ASoC: fsl: eukrea-tlv320: Convert to platform remove callback
returning void
ASoC: fsl: fsl_asrc: Convert to platform remove callback returning
void
ASoC: fsl: fsl_aud2htx: Convert to platform remove callback returning
void
ASoC: fsl: fsl_audmix: Convert to platform remove callback returning
void
ASoC: fsl: fsl_dma: Convert to platform remove callback returning void
ASoC: fsl: fsl_easrc: Convert to platform remove callback returning
void
ASoC: fsl: fsl_esai: Convert to platform remove callback returning
void
ASoC: fsl: fsl_mqs: Convert to platform remove callback returning void
ASoC: fsl: fsl_rpmsg: Convert to platform remove callback returning
void
ASoC: fsl: fsl_sai: Convert to platform remove callback returning void
ASoC: fsl: fsl_spdif: Convert to platform remove callback returning
void
ASoC: fsl: fsl_ssi: Convert to platform remove callback returning void
ASoC: fsl: fsl_xcvr: Convert to platform remove callback returning
void
ASoC: fsl: imx-audmux: Convert to platform remove callback returning
void
ASoC: fsl: imx-pcm-rpmsg: Convert to platform remove callback
returning void
ASoC: fsl: imx-sgtl5000: Convert to platform remove callback returning
void
ASoC: fsl: mpc5200_psc_ac97: Convert to platform remove callback
returning void
ASoC: fsl: mpc5200_psc_i2s: Convert to platform remove callback
returning void
ASoC: fsl: mpc8610_hpcd: Convert to platform remove callback returning
void
ASoC: fsl: p1022_ds: Convert to platform remove callback returning
void
ASoC: fsl: p1022_rdk: Convert to platform remove callback returning
void
ASoC: fsl: pcm030-audio-fabric: Convert to platform remove callback
returning void
ASoC: generic: test-component: Convert to platform remove callback
returning void
ASoC: img: img-i2s-in: Convert to platform remove callback returning
void
ASoC: img: img-i2s-out: Convert to platform remove callback returning
void
ASoC: img: img-parallel-out: Convert to platform remove callback
returning void
ASoC: img: img-spdif-in: Convert to platform remove callback returning
void
ASoC: img: img-spdif-out: Convert to platform remove callback
returning void
ASoC: img: pistachio-internal-dac: Convert to platform remove callback
returning void
ASoC: Intel: sst-mfld-platform-pcm: Convert to platform remove
callback returning void
ASoC: Intel: sst: Convert to platform remove callback returning void
ASoC: Intel: bytcht_es8316: Convert to platform remove callback
returning void
ASoC: Intel: bytcr_rt5640: Convert to platform remove callback
returning void
ASoC: Intel: boards: bytcr_rt5651: Convert to platform remove callback
returning void
ASoC: Intel: bytcr_wm5102: Convert to platform remove callback
returning void
ASoC: Intel: cht_bsw_max98090_ti: Convert to platform remove callback
returning void
ASoC: Intel: sof_es8336: Convert to platform remove callback returning
void
ASoC: Intel: sof_pcm512x: Convert to platform remove callback
returning void
ASoC: Intel: sof_sdw: Convert to platform remove callback returning
void
ASoC: Intel: sof_wm8804: Convert to platform remove callback returning
void
ASoC: Intel: catpt: Convert to platform remove callback returning void
ASoC: Intel: skl-ssp-clk: Convert to platform remove callback
returning void
ASoC: kirkwood: kirkwood-i2s: Convert to platform remove callback
returning void
ASoC: mediatek: mtk-btcvsd: Convert to platform remove callback
returning void
ASoC: mediatek: mt2701-afe-pcm: Convert to platform remove callback
returning void
ASoC: mediatek: mt6797-afe-pcm: Convert to platform remove callback
returning void
ASoC: mediatek: mt8173-afe-pcm: Convert to platform remove callback
returning void
ASoC: mediatek: mt8183-afe-pcm: Convert to platform remove callback
returning void
ASoC: mediatek: mt8188-afe-pcm: Convert to platform remove callback
returning void
ASoC: mediatek: mt8192-afe-pcm: Convert to platform remove callback
returning void
ASoC: mediatek: mt8195-afe-pcm: Convert to platform remove callback
returning void
ASoC: meson: aiu: Convert to platform remove callback returning void
ASoC: mxs: mxs-sgtl5000: Convert to platform remove callback returning
void
ASoC: pxa: mmp-sspa: Convert to platform remove callback returning
void
ASoC: pxa: pxa2xx-ac97: Convert to platform remove callback returning
void
ASoC: qcom: qdsp6: Convert to platform remove callback returning void
ASoC: rockchip: rockchip_i2s: Convert to platform remove callback
returning void
ASoC: rockchip: rockchip_i2s_tdm: Convert to platform remove callback
returning void
ASoC: rockchip: rockchip_pdm: Convert to platform remove callback
returning void
ASoC: rockchip: rockchip_rt5645: Convert to platform remove callback
returning void
ASoC: rockchip: rockchip_spdif: Convert to platform remove callback
returning void
ASoC: samsung: arndale: Convert to platform remove callback returning
void
ASoC: samsung: i2s: Convert to platform remove callback returning void
ASoC: samsung: odroid: Convert to platform remove callback returning
void
ASoC: samsung: pcm: Convert to platform remove callback returning void
ASoC: samsung: snow: Convert to platform remove callback returning
void
ASoC: samsung: spdif: Convert to platform remove callback returning
void
ASoC: sh: fsi: Convert to platform remove callback returning void
ASoC: sh: hac: Convert to platform remove callback returning void
ASoC: sh: rcar: Convert to platform remove callback returning void
ASoC: sh: rz-ssi: Convert to platform remove callback returning void
ASoC: sh: siu_dai: Convert to platform remove callback returning void
ASoC: sprd: sprd-mcdt: Convert to platform remove callback returning
void
ASoC: stm: stm32_adfsdm: Convert to platform remove callback returning
void
ASoC: stm: stm32_i2s: Convert to platform remove callback returning
void
ASoC: stm: stm32_sai_sub: Convert to platform remove callback
returning void
ASoC: stm: stm32_spdifrx: Convert to platform remove callback
returning void
ASoC: sunxi: sun4i-codec: Convert to platform remove callback
returning void
ASoC: sunxi: sun4i-i2s: Convert to platform remove callback returning
void
ASoC: sunxi: sun4i-spdif: Convert to platform remove callback
returning void
ASoC: sunxi: sun50i-dmic: Convert to platform remove callback
returning void
ASoC: sunxi: sun8i-codec: Convert to platform remove callback
returning void
ASoC: tegra: tegra186_asrc: Convert to platform remove callback
returning void
ASoC: tegra: tegra186_dspk: Convert to platform remove callback
returning void
ASoC: tegra: tegra20_ac97: Convert to platform remove callback
returning void
ASoC: tegra: tegra20_i2s: Convert to platform remove callback
returning void
ASoC: tegra: tegra210_admaif: Convert to platform remove callback
returning void
ASoC: tegra: tegra210_adx: Convert to platform remove callback
returning void
ASoC: tegra: tegra210_ahub: Convert to platform remove callback
returning void
ASoC: tegra: tegra210_amx: Convert to platform remove callback
returning void
ASoC: tegra: tegra210_dmic: Convert to platform remove callback
returning void
ASoC: tegra: tegra210_i2s: Convert to platform remove callback
returning void
ASoC: tegra: tegra210_mixer: Convert to platform remove callback
returning void
ASoC: tegra: tegra210_mvc: Convert to platform remove callback
returning void
ASoC: tegra: tegra210_ope: Convert to platform remove callback
returning void
ASoC: tegra: tegra210_sfc: Convert to platform remove callback
returning void
ASoC: tegra: tegra30_ahub: Convert to platform remove callback
returning void
ASoC: tegra: tegra30_i2s: Convert to platform remove callback
returning void
ASoC: ti: ams-delta: Convert to platform remove callback returning
void
ASoC: ti: davinci-i2s: Convert to platform remove callback returning
void
ASoC: ti: davinci-mcasp: Convert to platform remove callback returning
void
ASoC: ti: omap-hdmi: Convert to platform remove callback returning
void
ASoC: ti: omap-mcbsp: Convert to platform remove callback returning
void
ASoC: uniphier: evea: Convert to platform remove callback returning
void
ASoC: ux500: mop500: Convert to platform remove callback returning
void
ASoC: ux500: ux500_msp_dai: Convert to platform remove callback
returning void
ASoC: xilinx: xlnx_formatter_pcm: Convert to platform remove callback
returning void
ASoC: xilinx: xlnx_spdif: Convert to platform remove callback
returning void
ASoC: xtensa: xtfpga-i2s: Convert to platform remove callback
returning void
ALSA: sparc/cs4231: Convert to platform remove callback returning void
ALSA: sparc/dbri: Convert to platform remove callback returning void
sound/arm/pxa2xx-ac97.c | 6 ++----
sound/atmel/ac97c.c | 6 ++----
sound/drivers/mts64.c | 6 ++----
sound/drivers/portman2x4.c | 6 ++----
sound/mips/hal2.c | 5 ++---
sound/mips/sgio2audio.c | 5 ++---
sound/pci/hda/hda_tegra.c | 6 ++----
sound/ppc/powermac.c | 5 ++---
sound/sh/aica.c | 7 ++-----
sound/sh/sh_dac_audio.c | 5 ++---
sound/soc/adi/axi-i2s.c | 6 ++----
sound/soc/adi/axi-spdif.c | 6 ++----
sound/soc/amd/acp-pcm-dma.c | 6 ++----
sound/soc/amd/acp/acp-rembrandt.c | 13 +++----------
sound/soc/amd/acp/acp-renoir.c | 5 ++---
sound/soc/amd/ps/ps-pdm-dma.c | 5 ++---
sound/soc/amd/raven/acp3x-pcm-dma.c | 5 ++---
sound/soc/amd/renoir/acp3x-pdm-dma.c | 5 ++---
sound/soc/amd/vangogh/acp5x-pcm-dma.c | 5 ++---
sound/soc/amd/yc/acp6x-pdm-dma.c | 5 ++---
sound/soc/apple/mca.c | 5 ++---
sound/soc/atmel/atmel-i2s.c | 6 ++----
sound/soc/atmel/atmel_wm8904.c | 6 ++----
sound/soc/atmel/mchp-i2s-mcc.c | 6 ++----
sound/soc/atmel/mchp-pdmc.c | 6 ++----
sound/soc/atmel/mchp-spdifrx.c | 6 ++----
sound/soc/atmel/mchp-spdiftx.c | 6 ++----
sound/soc/atmel/mikroe-proto.c | 6 ++----
sound/soc/atmel/sam9g20_wm8731.c | 6 ++----
sound/soc/atmel/sam9x5_wm8731.c | 6 ++----
sound/soc/atmel/tse850-pcm5142.c | 6 ++----
sound/soc/au1x/ac97c.c | 6 ++----
sound/soc/au1x/i2sc.c | 6 ++----
sound/soc/au1x/psc-ac97.c | 6 ++----
sound/soc/au1x/psc-i2s.c | 6 ++----
sound/soc/bcm/bcm63xx-i2s-whistler.c | 5 ++---
sound/soc/bcm/cygnus-ssp.c | 6 ++----
sound/soc/cirrus/edb93xx.c | 6 ++----
sound/soc/cirrus/ep93xx-i2s.c | 5 ++---
sound/soc/codecs/cs47l15.c | 6 ++----
sound/soc/codecs/cs47l24.c | 6 ++----
sound/soc/codecs/cs47l35.c | 6 ++----
sound/soc/codecs/cs47l85.c | 6 ++----
sound/soc/codecs/cs47l90.c | 6 ++----
sound/soc/codecs/cs47l92.c | 6 ++----
sound/soc/codecs/inno_rk3036.c | 6 ++----
sound/soc/codecs/lpass-rx-macro.c | 6 ++----
sound/soc/codecs/lpass-tx-macro.c | 6 ++----
sound/soc/codecs/lpass-va-macro.c | 6 ++----
sound/soc/codecs/lpass-wsa-macro.c | 6 ++----
sound/soc/codecs/msm8916-wcd-analog.c | 6 ++----
sound/soc/codecs/msm8916-wcd-digital.c | 6 ++----
sound/soc/codecs/rk817_codec.c | 6 ++----
sound/soc/codecs/wcd938x.c | 6 ++----
sound/soc/codecs/wm5102.c | 6 ++----
sound/soc/codecs/wm5110.c | 6 ++----
sound/soc/codecs/wm8994.c | 6 ++----
sound/soc/codecs/wm8997.c | 6 ++----
sound/soc/codecs/wm8998.c | 6 ++----
sound/soc/dwc/dwc-i2s.c | 5 ++---
sound/soc/fsl/eukrea-tlv320.c | 6 ++----
sound/soc/fsl/fsl_asrc.c | 6 ++----
sound/soc/fsl/fsl_aud2htx.c | 6 ++----
sound/soc/fsl/fsl_audmix.c | 6 ++----
sound/soc/fsl/fsl_dma.c | 6 ++----
sound/soc/fsl/fsl_easrc.c | 6 ++----
sound/soc/fsl/fsl_esai.c | 6 ++----
sound/soc/fsl/fsl_mqs.c | 5 ++---
sound/soc/fsl/fsl_rpmsg.c | 6 ++----
sound/soc/fsl/fsl_sai.c | 6 ++----
sound/soc/fsl/fsl_spdif.c | 6 ++----
sound/soc/fsl/fsl_ssi.c | 6 ++----
sound/soc/fsl/fsl_xcvr.c | 5 ++---
sound/soc/fsl/imx-audmux.c | 6 ++----
sound/soc/fsl/imx-pcm-rpmsg.c | 6 ++----
sound/soc/fsl/imx-sgtl5000.c | 6 ++----
sound/soc/fsl/mpc5200_psc_ac97.c | 5 ++---
sound/soc/fsl/mpc5200_psc_i2s.c | 5 ++---
sound/soc/fsl/mpc8610_hpcd.c | 6 ++----
sound/soc/fsl/p1022_ds.c | 6 ++----
sound/soc/fsl/p1022_rdk.c | 6 ++----
sound/soc/fsl/pcm030-audio-fabric.c | 6 ++----
sound/soc/generic/test-component.c | 6 ++----
sound/soc/img/img-i2s-in.c | 6 ++----
sound/soc/img/img-i2s-out.c | 6 ++----
sound/soc/img/img-parallel-out.c | 6 ++----
sound/soc/img/img-spdif-in.c | 6 ++----
sound/soc/img/img-spdif-out.c | 6 ++----
sound/soc/img/pistachio-internal-dac.c | 6 ++----
sound/soc/intel/atom/sst-mfld-platform-pcm.c | 5 ++---
sound/soc/intel/atom/sst/sst_acpi.c | 5 ++---
sound/soc/intel/boards/bytcht_es8316.c | 5 ++---
sound/soc/intel/boards/bytcr_rt5640.c | 5 ++---
sound/soc/intel/boards/bytcr_rt5651.c | 5 ++---
sound/soc/intel/boards/bytcr_wm5102.c | 5 ++---
sound/soc/intel/boards/cht_bsw_max98090_ti.c | 6 ++----
sound/soc/intel/boards/sof_es8336.c | 6 ++----
sound/soc/intel/boards/sof_pcm512x.c | 6 ++----
sound/soc/intel/boards/sof_sdw.c | 6 ++----
sound/soc/intel/boards/sof_wm8804.c | 5 ++---
sound/soc/intel/catpt/device.c | 6 ++----
sound/soc/intel/skylake/skl-ssp-clk.c | 6 ++----
sound/soc/kirkwood/kirkwood-i2s.c | 6 ++----
sound/soc/mediatek/common/mtk-btcvsd.c | 5 ++---
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 6 ++----
sound/soc/mediatek/mt6797/mt6797-afe-pcm.c | 6 ++----
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 5 ++---
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c | 6 ++----
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c | 6 ++----
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c | 5 ++---
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c | 5 ++---
sound/soc/meson/aiu.c | 6 ++----
sound/soc/mxs/mxs-sgtl5000.c | 6 ++----
sound/soc/pxa/mmp-sspa.c | 7 +++----
sound/soc/pxa/pxa2xx-ac97.c | 5 ++---
sound/soc/qcom/qdsp6/q6routing.c | 6 ++----
sound/soc/rockchip/rockchip_i2s.c | 6 ++----
sound/soc/rockchip/rockchip_i2s_tdm.c | 6 ++----
sound/soc/rockchip/rockchip_pdm.c | 6 ++----
sound/soc/rockchip/rockchip_rt5645.c | 6 ++----
sound/soc/rockchip/rockchip_spdif.c | 6 ++----
sound/soc/samsung/arndale.c | 5 ++---
sound/soc/samsung/i2s.c | 8 +++-----
sound/soc/samsung/odroid.c | 6 ++----
sound/soc/samsung/pcm.c | 6 ++----
sound/soc/samsung/snow.c | 6 ++----
sound/soc/samsung/spdif.c | 6 ++----
sound/soc/sh/fsi.c | 6 ++----
sound/soc/sh/hac.c | 5 ++---
sound/soc/sh/rcar/core.c | 6 ++----
sound/soc/sh/rz-ssi.c | 6 ++----
sound/soc/sh/siu_dai.c | 5 ++---
sound/soc/sprd/sprd-mcdt.c | 6 ++----
sound/soc/stm/stm32_adfsdm.c | 6 ++----
sound/soc/stm/stm32_i2s.c | 6 ++----
sound/soc/stm/stm32_sai_sub.c | 6 ++----
sound/soc/stm/stm32_spdifrx.c | 6 ++----
sound/soc/sunxi/sun4i-codec.c | 6 ++----
sound/soc/sunxi/sun4i-i2s.c | 6 ++----
sound/soc/sunxi/sun4i-spdif.c | 6 ++----
sound/soc/sunxi/sun50i-dmic.c | 6 ++----
sound/soc/sunxi/sun8i-codec.c | 6 ++----
sound/soc/tegra/tegra186_asrc.c | 6 ++----
sound/soc/tegra/tegra186_dspk.c | 6 ++----
sound/soc/tegra/tegra20_ac97.c | 6 ++----
sound/soc/tegra/tegra20_i2s.c | 6 ++----
sound/soc/tegra/tegra210_admaif.c | 6 ++----
sound/soc/tegra/tegra210_adx.c | 6 ++----
sound/soc/tegra/tegra210_ahub.c | 6 ++----
sound/soc/tegra/tegra210_amx.c | 6 ++----
sound/soc/tegra/tegra210_dmic.c | 6 ++----
sound/soc/tegra/tegra210_i2s.c | 6 ++----
sound/soc/tegra/tegra210_mixer.c | 6 ++----
sound/soc/tegra/tegra210_mvc.c | 6 ++----
sound/soc/tegra/tegra210_ope.c | 6 ++----
sound/soc/tegra/tegra210_sfc.c | 6 ++----
sound/soc/tegra/tegra30_ahub.c | 6 ++----
sound/soc/tegra/tegra30_i2s.c | 6 ++----
sound/soc/ti/ams-delta.c | 5 ++---
sound/soc/ti/davinci-i2s.c | 6 ++----
sound/soc/ti/davinci-mcasp.c | 6 ++----
sound/soc/ti/omap-hdmi.c | 5 ++---
sound/soc/ti/omap-mcbsp.c | 6 ++----
sound/soc/uniphier/evea.c | 6 ++----
sound/soc/ux500/mop500.c | 6 ++----
sound/soc/ux500/ux500_msp_dai.c | 6 ++----
sound/soc/xilinx/xlnx_formatter_pcm.c | 5 ++---
sound/soc/xilinx/xlnx_spdif.c | 5 ++---
sound/soc/xtensa/xtfpga-i2s.c | 5 ++---
sound/sparc/cs4231.c | 6 ++----
sound/sparc/dbri.c | 6 ++----
171 files changed, 345 insertions(+), 654 deletions(-)
base-commit: fe15c26ee2
--
2.39.2
This commit is contained in:
commit
4af574f58f
@ -262,7 +262,7 @@ err_dev:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int pxa2xx_ac97_remove(struct platform_device *dev)
|
||||
static void pxa2xx_ac97_remove(struct platform_device *dev)
|
||||
{
|
||||
struct snd_card *card = platform_get_drvdata(dev);
|
||||
|
||||
@ -270,13 +270,11 @@ static int pxa2xx_ac97_remove(struct platform_device *dev)
|
||||
snd_card_free(card);
|
||||
pxa2xx_ac97_hw_remove(dev);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver pxa2xx_ac97_driver = {
|
||||
.probe = pxa2xx_ac97_probe,
|
||||
.remove = pxa2xx_ac97_remove,
|
||||
.remove_new = pxa2xx_ac97_remove,
|
||||
.driver = {
|
||||
.name = "pxa2xx-ac97",
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
|
@ -843,7 +843,7 @@ static SIMPLE_DEV_PM_OPS(atmel_ac97c_pm, atmel_ac97c_suspend, atmel_ac97c_resume
|
||||
#define ATMEL_AC97C_PM_OPS NULL
|
||||
#endif
|
||||
|
||||
static int atmel_ac97c_remove(struct platform_device *pdev)
|
||||
static void atmel_ac97c_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_card *card = platform_get_drvdata(pdev);
|
||||
struct atmel_ac97c *chip = get_chip(card);
|
||||
@ -858,13 +858,11 @@ static int atmel_ac97c_remove(struct platform_device *pdev)
|
||||
free_irq(chip->irq, chip);
|
||||
|
||||
snd_card_free(card);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver atmel_ac97c_driver = {
|
||||
.probe = atmel_ac97c_probe,
|
||||
.remove = atmel_ac97c_remove,
|
||||
.remove_new = atmel_ac97c_remove,
|
||||
.driver = {
|
||||
.name = "atmel_ac97c",
|
||||
.pm = ATMEL_AC97C_PM_OPS,
|
||||
|
@ -999,19 +999,17 @@ __err:
|
||||
return err;
|
||||
}
|
||||
|
||||
static int snd_mts64_remove(struct platform_device *pdev)
|
||||
static void snd_mts64_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_card *card = platform_get_drvdata(pdev);
|
||||
|
||||
if (card)
|
||||
snd_card_free(card);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver snd_mts64_driver = {
|
||||
.probe = snd_mts64_probe,
|
||||
.remove = snd_mts64_remove,
|
||||
.remove_new = snd_mts64_remove,
|
||||
.driver = {
|
||||
.name = PLATFORM_DRIVER,
|
||||
}
|
||||
|
@ -795,20 +795,18 @@ __err:
|
||||
return err;
|
||||
}
|
||||
|
||||
static int snd_portman_remove(struct platform_device *pdev)
|
||||
static void snd_portman_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_card *card = platform_get_drvdata(pdev);
|
||||
|
||||
if (card)
|
||||
snd_card_free(card);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static struct platform_driver snd_portman_driver = {
|
||||
.probe = snd_portman_probe,
|
||||
.remove = snd_portman_remove,
|
||||
.remove_new = snd_portman_remove,
|
||||
.driver = {
|
||||
.name = PLATFORM_DRIVER,
|
||||
}
|
||||
|
@ -877,17 +877,16 @@ static int hal2_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int hal2_remove(struct platform_device *pdev)
|
||||
static void hal2_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_card *card = platform_get_drvdata(pdev);
|
||||
|
||||
snd_card_free(card);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver hal2_driver = {
|
||||
.probe = hal2_probe,
|
||||
.remove = hal2_remove,
|
||||
.remove_new = hal2_remove,
|
||||
.driver = {
|
||||
.name = "sgihal2",
|
||||
}
|
||||
|
@ -908,17 +908,16 @@ static int snd_sgio2audio_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int snd_sgio2audio_remove(struct platform_device *pdev)
|
||||
static void snd_sgio2audio_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_card *card = platform_get_drvdata(pdev);
|
||||
|
||||
snd_card_free(card);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver sgio2audio_driver = {
|
||||
.probe = snd_sgio2audio_probe,
|
||||
.remove = snd_sgio2audio_remove,
|
||||
.remove_new = snd_sgio2audio_remove,
|
||||
.driver = {
|
||||
.name = "sgio2audio",
|
||||
}
|
||||
|
@ -580,12 +580,10 @@ static void hda_tegra_probe_work(struct work_struct *work)
|
||||
return; /* no error return from async probe */
|
||||
}
|
||||
|
||||
static int hda_tegra_remove(struct platform_device *pdev)
|
||||
static void hda_tegra_remove(struct platform_device *pdev)
|
||||
{
|
||||
snd_card_free(dev_get_drvdata(&pdev->dev));
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void hda_tegra_shutdown(struct platform_device *pdev)
|
||||
@ -607,7 +605,7 @@ static struct platform_driver tegra_platform_hda = {
|
||||
.of_match_table = hda_tegra_match,
|
||||
},
|
||||
.probe = hda_tegra_probe,
|
||||
.remove = hda_tegra_remove,
|
||||
.remove_new = hda_tegra_remove,
|
||||
.shutdown = hda_tegra_shutdown,
|
||||
};
|
||||
module_platform_driver(tegra_platform_hda);
|
||||
|
@ -130,10 +130,9 @@ __error:
|
||||
}
|
||||
|
||||
|
||||
static int snd_pmac_remove(struct platform_device *devptr)
|
||||
static void snd_pmac_remove(struct platform_device *devptr)
|
||||
{
|
||||
snd_card_free(platform_get_drvdata(devptr));
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
@ -161,7 +160,7 @@ static SIMPLE_DEV_PM_OPS(snd_pmac_pm, snd_pmac_driver_suspend, snd_pmac_driver_r
|
||||
|
||||
static struct platform_driver snd_pmac_driver = {
|
||||
.probe = snd_pmac_probe,
|
||||
.remove = snd_pmac_remove,
|
||||
.remove_new = snd_pmac_remove,
|
||||
.driver = {
|
||||
.name = SND_PMAC_DRIVER,
|
||||
.pm = SND_PMAC_PM_OPS,
|
||||
|
@ -539,15 +539,12 @@ static int add_aicamixer_controls(struct snd_card_aica *dreamcastcard)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int snd_aica_remove(struct platform_device *devptr)
|
||||
static void snd_aica_remove(struct platform_device *devptr)
|
||||
{
|
||||
struct snd_card_aica *dreamcastcard;
|
||||
dreamcastcard = platform_get_drvdata(devptr);
|
||||
if (unlikely(!dreamcastcard))
|
||||
return -ENODEV;
|
||||
snd_card_free(dreamcastcard->card);
|
||||
kfree(dreamcastcard);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int snd_aica_probe(struct platform_device *devptr)
|
||||
@ -594,7 +591,7 @@ static int snd_aica_probe(struct platform_device *devptr)
|
||||
|
||||
static struct platform_driver snd_aica_driver = {
|
||||
.probe = snd_aica_probe,
|
||||
.remove = snd_aica_remove,
|
||||
.remove_new = snd_aica_remove,
|
||||
.driver = {
|
||||
.name = SND_AICA_DRIVER,
|
||||
},
|
||||
|
@ -257,10 +257,9 @@ static int snd_sh_dac_pcm(struct snd_sh_dac *chip, int device)
|
||||
|
||||
|
||||
/* driver .remove -- destructor */
|
||||
static int snd_sh_dac_remove(struct platform_device *devptr)
|
||||
static void snd_sh_dac_remove(struct platform_device *devptr)
|
||||
{
|
||||
snd_card_free(platform_get_drvdata(devptr));
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* free -- it has been defined by create */
|
||||
@ -403,7 +402,7 @@ probe_error:
|
||||
*/
|
||||
static struct platform_driver sh_dac_driver = {
|
||||
.probe = snd_sh_dac_probe,
|
||||
.remove = snd_sh_dac_remove,
|
||||
.remove_new = snd_sh_dac_remove,
|
||||
.driver = {
|
||||
.name = "dac_audio",
|
||||
},
|
||||
|
@ -274,13 +274,11 @@ err_clk_disable:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int axi_i2s_dev_remove(struct platform_device *pdev)
|
||||
static void axi_i2s_dev_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct axi_i2s *i2s = platform_get_drvdata(pdev);
|
||||
|
||||
clk_disable_unprepare(i2s->clk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id axi_i2s_of_match[] = {
|
||||
@ -295,7 +293,7 @@ static struct platform_driver axi_i2s_driver = {
|
||||
.of_match_table = axi_i2s_of_match,
|
||||
},
|
||||
.probe = axi_i2s_probe,
|
||||
.remove = axi_i2s_dev_remove,
|
||||
.remove_new = axi_i2s_dev_remove,
|
||||
};
|
||||
module_platform_driver(axi_i2s_driver);
|
||||
|
||||
|
@ -239,13 +239,11 @@ err_clk_disable:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int axi_spdif_dev_remove(struct platform_device *pdev)
|
||||
static void axi_spdif_dev_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct axi_spdif *spdif = platform_get_drvdata(pdev);
|
||||
|
||||
clk_disable_unprepare(spdif->clk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id axi_spdif_of_match[] = {
|
||||
@ -260,7 +258,7 @@ static struct platform_driver axi_spdif_driver = {
|
||||
.of_match_table = axi_spdif_of_match,
|
||||
},
|
||||
.probe = axi_spdif_probe,
|
||||
.remove = axi_spdif_dev_remove,
|
||||
.remove_new = axi_spdif_dev_remove,
|
||||
};
|
||||
module_platform_driver(axi_spdif_driver);
|
||||
|
||||
|
@ -1323,7 +1323,7 @@ static int acp_audio_probe(struct platform_device *pdev)
|
||||
return status;
|
||||
}
|
||||
|
||||
static int acp_audio_remove(struct platform_device *pdev)
|
||||
static void acp_audio_remove(struct platform_device *pdev)
|
||||
{
|
||||
int status;
|
||||
struct audio_drv_data *adata = dev_get_drvdata(&pdev->dev);
|
||||
@ -1332,8 +1332,6 @@ static int acp_audio_remove(struct platform_device *pdev)
|
||||
if (status)
|
||||
dev_err(&pdev->dev, "ACP Deinit failed status:%d\n", status);
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int acp_pcm_resume(struct device *dev)
|
||||
@ -1428,7 +1426,7 @@ static const struct dev_pm_ops acp_pm_ops = {
|
||||
|
||||
static struct platform_driver acp_dma_driver = {
|
||||
.probe = acp_audio_probe,
|
||||
.remove = acp_audio_remove,
|
||||
.remove_new = acp_audio_remove,
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.pm = &acp_pm_ops,
|
||||
|
@ -366,28 +366,21 @@ static int rembrandt_audio_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int rembrandt_audio_remove(struct platform_device *pdev)
|
||||
static void rembrandt_audio_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct device *dev = &pdev->dev;
|
||||
struct acp_dev_data *adata = dev_get_drvdata(dev);
|
||||
struct acp_chip_info *chip;
|
||||
|
||||
chip = dev_get_platdata(&pdev->dev);
|
||||
if (!chip || !chip->base) {
|
||||
dev_err(&pdev->dev, "ACP chip data is NULL\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
struct acp_chip_info *chip = dev_get_platdata(dev);
|
||||
|
||||
rmb_acp_deinit(chip->base);
|
||||
|
||||
acp6x_disable_interrupts(adata);
|
||||
acp_platform_unregister(dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver rembrandt_driver = {
|
||||
.probe = rembrandt_audio_probe,
|
||||
.remove = rembrandt_audio_remove,
|
||||
.remove_new = rembrandt_audio_remove,
|
||||
.driver = {
|
||||
.name = "acp_asoc_rembrandt",
|
||||
},
|
||||
|
@ -313,7 +313,7 @@ static int renoir_audio_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int renoir_audio_remove(struct platform_device *pdev)
|
||||
static void renoir_audio_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct device *dev = &pdev->dev;
|
||||
struct acp_dev_data *adata = dev_get_drvdata(dev);
|
||||
@ -329,12 +329,11 @@ static int renoir_audio_remove(struct platform_device *pdev)
|
||||
dev_err(&pdev->dev, "ACP de-init Failed (%pe)\n", ERR_PTR(ret));
|
||||
|
||||
acp_platform_unregister(dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver renoir_driver = {
|
||||
.probe = renoir_audio_probe,
|
||||
.remove = renoir_audio_remove,
|
||||
.remove_new = renoir_audio_remove,
|
||||
.driver = {
|
||||
.name = "acp_asoc_renoir",
|
||||
},
|
||||
|
@ -399,10 +399,9 @@ static int acp63_pdm_audio_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int acp63_pdm_audio_remove(struct platform_device *pdev)
|
||||
static void acp63_pdm_audio_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __maybe_unused acp63_pdm_resume(struct device *dev)
|
||||
@ -451,7 +450,7 @@ static const struct dev_pm_ops acp63_pdm_pm_ops = {
|
||||
|
||||
static struct platform_driver acp63_pdm_dma_driver = {
|
||||
.probe = acp63_pdm_audio_probe,
|
||||
.remove = acp63_pdm_audio_remove,
|
||||
.remove_new = acp63_pdm_audio_remove,
|
||||
.driver = {
|
||||
.name = "acp_ps_pdm_dma",
|
||||
.pm = &acp63_pdm_pm_ops,
|
||||
|
@ -421,10 +421,9 @@ static int acp3x_audio_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int acp3x_audio_remove(struct platform_device *pdev)
|
||||
static void acp3x_audio_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int acp3x_resume(struct device *dev)
|
||||
@ -509,7 +508,7 @@ static const struct dev_pm_ops acp3x_pm_ops = {
|
||||
|
||||
static struct platform_driver acp3x_dma_driver = {
|
||||
.probe = acp3x_audio_probe,
|
||||
.remove = acp3x_audio_remove,
|
||||
.remove_new = acp3x_audio_remove,
|
||||
.driver = {
|
||||
.name = "acp3x_rv_i2s_dma",
|
||||
.pm = &acp3x_pm_ops,
|
||||
|
@ -435,10 +435,9 @@ static int acp_pdm_audio_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int acp_pdm_audio_remove(struct platform_device *pdev)
|
||||
static void acp_pdm_audio_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int acp_pdm_resume(struct device *dev)
|
||||
@ -489,7 +488,7 @@ static const struct dev_pm_ops acp_pdm_pm_ops = {
|
||||
|
||||
static struct platform_driver acp_pdm_dma_driver = {
|
||||
.probe = acp_pdm_audio_probe,
|
||||
.remove = acp_pdm_audio_remove,
|
||||
.remove_new = acp_pdm_audio_remove,
|
||||
.driver = {
|
||||
.name = "acp_rn_pdm_dma",
|
||||
.pm = &acp_pdm_pm_ops,
|
||||
|
@ -415,10 +415,9 @@ static int acp5x_audio_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int acp5x_audio_remove(struct platform_device *pdev)
|
||||
static void acp5x_audio_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __maybe_unused acp5x_pcm_resume(struct device *dev)
|
||||
@ -500,7 +499,7 @@ static const struct dev_pm_ops acp5x_pm_ops = {
|
||||
|
||||
static struct platform_driver acp5x_dma_driver = {
|
||||
.probe = acp5x_audio_probe,
|
||||
.remove = acp5x_audio_remove,
|
||||
.remove_new = acp5x_audio_remove,
|
||||
.driver = {
|
||||
.name = "acp5x_i2s_dma",
|
||||
.pm = &acp5x_pm_ops,
|
||||
|
@ -388,10 +388,9 @@ static int acp6x_pdm_audio_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int acp6x_pdm_audio_remove(struct platform_device *pdev)
|
||||
static void acp6x_pdm_audio_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __maybe_unused acp6x_pdm_resume(struct device *dev)
|
||||
@ -440,7 +439,7 @@ static const struct dev_pm_ops acp6x_pdm_pm_ops = {
|
||||
|
||||
static struct platform_driver acp6x_pdm_dma_driver = {
|
||||
.probe = acp6x_pdm_audio_probe,
|
||||
.remove = acp6x_pdm_audio_remove,
|
||||
.remove_new = acp6x_pdm_audio_remove,
|
||||
.driver = {
|
||||
.name = "acp_yc_pdm_dma",
|
||||
.pm = &acp6x_pdm_pm_ops,
|
||||
|
@ -1159,13 +1159,12 @@ err_release:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int apple_mca_remove(struct platform_device *pdev)
|
||||
static void apple_mca_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct mca_data *mca = platform_get_drvdata(pdev);
|
||||
|
||||
snd_soc_unregister_component(&pdev->dev);
|
||||
apple_mca_release(mca);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id apple_mca_of_match[] = {
|
||||
@ -1180,7 +1179,7 @@ static struct platform_driver apple_mca_driver = {
|
||||
.of_match_table = apple_mca_of_match,
|
||||
},
|
||||
.probe = apple_mca_probe,
|
||||
.remove = apple_mca_remove,
|
||||
.remove_new = apple_mca_remove,
|
||||
};
|
||||
module_platform_driver(apple_mca_driver);
|
||||
|
||||
|
@ -717,13 +717,11 @@ static int atmel_i2s_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int atmel_i2s_remove(struct platform_device *pdev)
|
||||
static void atmel_i2s_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct atmel_i2s_dev *dev = platform_get_drvdata(pdev);
|
||||
|
||||
clk_disable_unprepare(dev->pclk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver atmel_i2s_driver = {
|
||||
@ -732,7 +730,7 @@ static struct platform_driver atmel_i2s_driver = {
|
||||
.of_match_table = of_match_ptr(atmel_i2s_dt_ids),
|
||||
},
|
||||
.probe = atmel_i2s_probe,
|
||||
.remove = atmel_i2s_remove,
|
||||
.remove_new = atmel_i2s_remove,
|
||||
};
|
||||
module_platform_driver(atmel_i2s_driver);
|
||||
|
||||
|
@ -161,7 +161,7 @@ err_set_audio:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int atmel_asoc_wm8904_remove(struct platform_device *pdev)
|
||||
static void atmel_asoc_wm8904_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
struct snd_soc_dai_link *dailink = &atmel_asoc_wm8904_dailink;
|
||||
@ -171,8 +171,6 @@ static int atmel_asoc_wm8904_remove(struct platform_device *pdev)
|
||||
|
||||
snd_soc_unregister_card(card);
|
||||
atmel_ssc_put_audio(id);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
@ -190,7 +188,7 @@ static struct platform_driver atmel_asoc_wm8904_driver = {
|
||||
.pm = &snd_soc_pm_ops,
|
||||
},
|
||||
.probe = atmel_asoc_wm8904_probe,
|
||||
.remove = atmel_asoc_wm8904_remove,
|
||||
.remove_new = atmel_asoc_wm8904_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(atmel_asoc_wm8904_driver);
|
||||
|
@ -1088,13 +1088,11 @@ static int mchp_i2s_mcc_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int mchp_i2s_mcc_remove(struct platform_device *pdev)
|
||||
static void mchp_i2s_mcc_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct mchp_i2s_mcc_dev *dev = platform_get_drvdata(pdev);
|
||||
|
||||
clk_disable_unprepare(dev->pclk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver mchp_i2s_mcc_driver = {
|
||||
@ -1103,7 +1101,7 @@ static struct platform_driver mchp_i2s_mcc_driver = {
|
||||
.of_match_table = of_match_ptr(mchp_i2s_mcc_dt_ids),
|
||||
},
|
||||
.probe = mchp_i2s_mcc_probe,
|
||||
.remove = mchp_i2s_mcc_remove,
|
||||
.remove_new = mchp_i2s_mcc_remove,
|
||||
};
|
||||
module_platform_driver(mchp_i2s_mcc_driver);
|
||||
|
||||
|
@ -1129,7 +1129,7 @@ pm_runtime_suspend:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int mchp_pdmc_remove(struct platform_device *pdev)
|
||||
static void mchp_pdmc_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct mchp_pdmc *dd = platform_get_drvdata(pdev);
|
||||
|
||||
@ -1137,8 +1137,6 @@ static int mchp_pdmc_remove(struct platform_device *pdev)
|
||||
mchp_pdmc_runtime_suspend(dd->dev);
|
||||
|
||||
pm_runtime_disable(dd->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id mchp_pdmc_of_match[] = {
|
||||
@ -1163,7 +1161,7 @@ static struct platform_driver mchp_pdmc_driver = {
|
||||
.pm = pm_ptr(&mchp_pdmc_pm_ops),
|
||||
},
|
||||
.probe = mchp_pdmc_probe,
|
||||
.remove = mchp_pdmc_remove,
|
||||
.remove_new = mchp_pdmc_remove,
|
||||
};
|
||||
module_platform_driver(mchp_pdmc_driver);
|
||||
|
||||
|
@ -1183,20 +1183,18 @@ pm_runtime_disable:
|
||||
return err;
|
||||
}
|
||||
|
||||
static int mchp_spdifrx_remove(struct platform_device *pdev)
|
||||
static void mchp_spdifrx_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct mchp_spdifrx_dev *dev = platform_get_drvdata(pdev);
|
||||
|
||||
pm_runtime_disable(dev->dev);
|
||||
if (!pm_runtime_status_suspended(dev->dev))
|
||||
mchp_spdifrx_runtime_suspend(dev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver mchp_spdifrx_driver = {
|
||||
.probe = mchp_spdifrx_probe,
|
||||
.remove = mchp_spdifrx_remove,
|
||||
.remove_new = mchp_spdifrx_remove,
|
||||
.driver = {
|
||||
.name = "mchp_spdifrx",
|
||||
.of_match_table = of_match_ptr(mchp_spdifrx_dt_ids),
|
||||
|
@ -876,7 +876,7 @@ pm_runtime_suspend:
|
||||
return err;
|
||||
}
|
||||
|
||||
static int mchp_spdiftx_remove(struct platform_device *pdev)
|
||||
static void mchp_spdiftx_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct mchp_spdiftx_dev *dev = platform_get_drvdata(pdev);
|
||||
|
||||
@ -884,13 +884,11 @@ static int mchp_spdiftx_remove(struct platform_device *pdev)
|
||||
mchp_spdiftx_runtime_suspend(dev->dev);
|
||||
|
||||
pm_runtime_disable(dev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver mchp_spdiftx_driver = {
|
||||
.probe = mchp_spdiftx_probe,
|
||||
.remove = mchp_spdiftx_remove,
|
||||
.remove_new = mchp_spdiftx_remove,
|
||||
.driver = {
|
||||
.name = "mchp_spdiftx",
|
||||
.of_match_table = of_match_ptr(mchp_spdiftx_dt_ids),
|
||||
|
@ -155,11 +155,9 @@ put_codec_node:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int snd_proto_remove(struct platform_device *pdev)
|
||||
static void snd_proto_remove(struct platform_device *pdev)
|
||||
{
|
||||
snd_soc_unregister_card(&snd_proto);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id snd_proto_of_match[] = {
|
||||
@ -174,7 +172,7 @@ static struct platform_driver snd_proto_driver = {
|
||||
.of_match_table = snd_proto_of_match,
|
||||
},
|
||||
.probe = snd_proto_probe,
|
||||
.remove = snd_proto_remove,
|
||||
.remove_new = snd_proto_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(snd_proto_driver);
|
||||
|
@ -186,14 +186,12 @@ err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int at91sam9g20ek_audio_remove(struct platform_device *pdev)
|
||||
static void at91sam9g20ek_audio_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
|
||||
snd_soc_unregister_card(card);
|
||||
atmel_ssc_put_audio(0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
@ -210,7 +208,7 @@ static struct platform_driver at91sam9g20ek_audio_driver = {
|
||||
.of_match_table = of_match_ptr(at91sam9g20ek_wm8731_dt_ids),
|
||||
},
|
||||
.probe = at91sam9g20ek_audio_probe,
|
||||
.remove = at91sam9g20ek_audio_remove,
|
||||
.remove_new = at91sam9g20ek_audio_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(at91sam9g20ek_audio_driver);
|
||||
|
@ -176,14 +176,12 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int sam9x5_wm8731_driver_remove(struct platform_device *pdev)
|
||||
static void sam9x5_wm8731_driver_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
struct sam9x5_drvdata *priv = card->drvdata;
|
||||
|
||||
atmel_ssc_put_audio(priv->ssc_id);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id sam9x5_wm8731_of_match[] = {
|
||||
@ -198,7 +196,7 @@ static struct platform_driver sam9x5_wm8731_driver = {
|
||||
.of_match_table = of_match_ptr(sam9x5_wm8731_of_match),
|
||||
},
|
||||
.probe = sam9x5_wm8731_driver_probe,
|
||||
.remove = sam9x5_wm8731_driver_remove,
|
||||
.remove_new = sam9x5_wm8731_driver_remove,
|
||||
};
|
||||
module_platform_driver(sam9x5_wm8731_driver);
|
||||
|
||||
|
@ -412,15 +412,13 @@ err_disable_ana:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int tse850_remove(struct platform_device *pdev)
|
||||
static void tse850_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card);
|
||||
|
||||
snd_soc_unregister_card(card);
|
||||
regulator_disable(tse850->ana);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id tse850_dt_ids[] = {
|
||||
@ -435,7 +433,7 @@ static struct platform_driver tse850_driver = {
|
||||
.of_match_table = of_match_ptr(tse850_dt_ids),
|
||||
},
|
||||
.probe = tse850_probe,
|
||||
.remove = tse850_remove,
|
||||
.remove_new = tse850_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(tse850_driver);
|
||||
|
@ -285,7 +285,7 @@ static int au1xac97c_drvprobe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int au1xac97c_drvremove(struct platform_device *pdev)
|
||||
static void au1xac97c_drvremove(struct platform_device *pdev)
|
||||
{
|
||||
struct au1xpsc_audio_data *ctx = platform_get_drvdata(pdev);
|
||||
|
||||
@ -294,8 +294,6 @@ static int au1xac97c_drvremove(struct platform_device *pdev)
|
||||
WR(ctx, AC97_ENABLE, EN_D); /* clock off, disable */
|
||||
|
||||
ac97c_workdata = NULL; /* MDEV */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
@ -338,7 +336,7 @@ static struct platform_driver au1xac97c_driver = {
|
||||
.pm = AU1XPSCAC97_PMOPS,
|
||||
},
|
||||
.probe = au1xac97c_drvprobe,
|
||||
.remove = au1xac97c_drvremove,
|
||||
.remove_new = au1xac97c_drvremove,
|
||||
};
|
||||
|
||||
module_platform_driver(au1xac97c_driver);
|
||||
|
@ -270,15 +270,13 @@ static int au1xi2s_drvprobe(struct platform_device *pdev)
|
||||
&au1xi2s_dai_driver, 1);
|
||||
}
|
||||
|
||||
static int au1xi2s_drvremove(struct platform_device *pdev)
|
||||
static void au1xi2s_drvremove(struct platform_device *pdev)
|
||||
{
|
||||
struct au1xpsc_audio_data *ctx = platform_get_drvdata(pdev);
|
||||
|
||||
snd_soc_unregister_component(&pdev->dev);
|
||||
|
||||
WR(ctx, I2S_ENABLE, EN_D); /* clock off, disable */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
@ -315,7 +313,7 @@ static struct platform_driver au1xi2s_driver = {
|
||||
.pm = AU1XI2SC_PMOPS,
|
||||
},
|
||||
.probe = au1xi2s_drvprobe,
|
||||
.remove = au1xi2s_drvremove,
|
||||
.remove_new = au1xi2s_drvremove,
|
||||
};
|
||||
|
||||
module_platform_driver(au1xi2s_driver);
|
||||
|
@ -421,7 +421,7 @@ static int au1xpsc_ac97_drvprobe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int au1xpsc_ac97_drvremove(struct platform_device *pdev)
|
||||
static void au1xpsc_ac97_drvremove(struct platform_device *pdev)
|
||||
{
|
||||
struct au1xpsc_audio_data *wd = platform_get_drvdata(pdev);
|
||||
|
||||
@ -434,8 +434,6 @@ static int au1xpsc_ac97_drvremove(struct platform_device *pdev)
|
||||
wmb(); /* drain writebuffer */
|
||||
|
||||
au1xpsc_ac97_workdata = NULL; /* MDEV */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
@ -488,7 +486,7 @@ static struct platform_driver au1xpsc_ac97_driver = {
|
||||
.pm = AU1XPSCAC97_PMOPS,
|
||||
},
|
||||
.probe = au1xpsc_ac97_drvprobe,
|
||||
.remove = au1xpsc_ac97_drvremove,
|
||||
.remove_new = au1xpsc_ac97_drvremove,
|
||||
};
|
||||
|
||||
module_platform_driver(au1xpsc_ac97_driver);
|
||||
|
@ -344,7 +344,7 @@ static int au1xpsc_i2s_drvprobe(struct platform_device *pdev)
|
||||
&au1xpsc_i2s_component, &wd->dai_drv, 1);
|
||||
}
|
||||
|
||||
static int au1xpsc_i2s_drvremove(struct platform_device *pdev)
|
||||
static void au1xpsc_i2s_drvremove(struct platform_device *pdev)
|
||||
{
|
||||
struct au1xpsc_audio_data *wd = platform_get_drvdata(pdev);
|
||||
|
||||
@ -352,8 +352,6 @@ static int au1xpsc_i2s_drvremove(struct platform_device *pdev)
|
||||
wmb(); /* drain writebuffer */
|
||||
__raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd));
|
||||
wmb(); /* drain writebuffer */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
@ -406,7 +404,7 @@ static struct platform_driver au1xpsc_i2s_driver = {
|
||||
.pm = AU1XPSCI2S_PMOPS,
|
||||
},
|
||||
.probe = au1xpsc_i2s_drvprobe,
|
||||
.remove = au1xpsc_i2s_drvremove,
|
||||
.remove_new = au1xpsc_i2s_drvremove,
|
||||
};
|
||||
|
||||
module_platform_driver(au1xpsc_i2s_driver);
|
||||
|
@ -289,10 +289,9 @@ static int bcm63xx_i2s_dev_probe(struct platform_device *pdev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int bcm63xx_i2s_dev_remove(struct platform_device *pdev)
|
||||
static void bcm63xx_i2s_dev_remove(struct platform_device *pdev)
|
||||
{
|
||||
bcm63xx_soc_platform_remove(pdev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
@ -308,7 +307,7 @@ static struct platform_driver bcm63xx_i2s_driver = {
|
||||
.of_match_table = of_match_ptr(snd_soc_bcm_audio_match),
|
||||
},
|
||||
.probe = bcm63xx_i2s_dev_probe,
|
||||
.remove = bcm63xx_i2s_dev_remove,
|
||||
.remove_new = bcm63xx_i2s_dev_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(bcm63xx_i2s_driver);
|
||||
|
@ -1377,11 +1377,9 @@ static int cygnus_ssp_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cygnus_ssp_remove(struct platform_device *pdev)
|
||||
static void cygnus_ssp_remove(struct platform_device *pdev)
|
||||
{
|
||||
cygnus_soc_platform_unregister(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id cygnus_ssp_of_match[] = {
|
||||
@ -1392,7 +1390,7 @@ MODULE_DEVICE_TABLE(of, cygnus_ssp_of_match);
|
||||
|
||||
static struct platform_driver cygnus_ssp_driver = {
|
||||
.probe = cygnus_ssp_probe,
|
||||
.remove = cygnus_ssp_remove,
|
||||
.remove_new = cygnus_ssp_remove,
|
||||
.driver = {
|
||||
.name = "cygnus-ssp",
|
||||
.of_match_table = cygnus_ssp_of_match,
|
||||
|
@ -93,14 +93,12 @@ static int edb93xx_probe(struct platform_device *pdev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int edb93xx_remove(struct platform_device *pdev)
|
||||
static void edb93xx_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
|
||||
snd_soc_unregister_card(card);
|
||||
ep93xx_i2s_release();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver edb93xx_driver = {
|
||||
@ -108,7 +106,7 @@ static struct platform_driver edb93xx_driver = {
|
||||
.name = "edb93xx-audio",
|
||||
},
|
||||
.probe = edb93xx_probe,
|
||||
.remove = edb93xx_remove,
|
||||
.remove_new = edb93xx_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(edb93xx_driver);
|
||||
|
@ -495,19 +495,18 @@ fail:
|
||||
return err;
|
||||
}
|
||||
|
||||
static int ep93xx_i2s_remove(struct platform_device *pdev)
|
||||
static void ep93xx_i2s_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct ep93xx_i2s_info *info = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
clk_put(info->lrclk);
|
||||
clk_put(info->sclk);
|
||||
clk_put(info->mclk);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver ep93xx_i2s_driver = {
|
||||
.probe = ep93xx_i2s_probe,
|
||||
.remove = ep93xx_i2s_remove,
|
||||
.remove_new = ep93xx_i2s_remove,
|
||||
.driver = {
|
||||
.name = "ep93xx-i2s",
|
||||
},
|
||||
|
@ -1468,7 +1468,7 @@ error_core:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int cs47l15_remove(struct platform_device *pdev)
|
||||
static void cs47l15_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct cs47l15 *cs47l15 = platform_get_drvdata(pdev);
|
||||
|
||||
@ -1482,8 +1482,6 @@ static int cs47l15_remove(struct platform_device *pdev)
|
||||
madera_free_irq(cs47l15->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l15);
|
||||
madera_free_overheat(&cs47l15->core);
|
||||
madera_core_free(&cs47l15->core);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver cs47l15_codec_driver = {
|
||||
@ -1491,7 +1489,7 @@ static struct platform_driver cs47l15_codec_driver = {
|
||||
.name = "cs47l15-codec",
|
||||
},
|
||||
.probe = &cs47l15_probe,
|
||||
.remove = &cs47l15_remove,
|
||||
.remove_new = cs47l15_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(cs47l15_codec_driver);
|
||||
|
@ -1319,7 +1319,7 @@ err_dsp_irq:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int cs47l24_remove(struct platform_device *pdev)
|
||||
static void cs47l24_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct cs47l24_priv *cs47l24 = platform_get_drvdata(pdev);
|
||||
struct arizona *arizona = cs47l24->core.arizona;
|
||||
@ -1333,8 +1333,6 @@ static int cs47l24_remove(struct platform_device *pdev)
|
||||
|
||||
arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 0);
|
||||
arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, cs47l24);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver cs47l24_codec_driver = {
|
||||
@ -1342,7 +1340,7 @@ static struct platform_driver cs47l24_codec_driver = {
|
||||
.name = "cs47l24-codec",
|
||||
},
|
||||
.probe = cs47l24_probe,
|
||||
.remove = cs47l24_remove,
|
||||
.remove_new = cs47l24_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(cs47l24_codec_driver);
|
||||
|
@ -1744,7 +1744,7 @@ error_core:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int cs47l35_remove(struct platform_device *pdev)
|
||||
static void cs47l35_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct cs47l35 *cs47l35 = platform_get_drvdata(pdev);
|
||||
int i;
|
||||
@ -1758,8 +1758,6 @@ static int cs47l35_remove(struct platform_device *pdev)
|
||||
madera_free_irq(cs47l35->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l35);
|
||||
madera_free_overheat(&cs47l35->core);
|
||||
madera_core_free(&cs47l35->core);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver cs47l35_codec_driver = {
|
||||
@ -1767,7 +1765,7 @@ static struct platform_driver cs47l35_codec_driver = {
|
||||
.name = "cs47l35-codec",
|
||||
},
|
||||
.probe = &cs47l35_probe,
|
||||
.remove = &cs47l35_remove,
|
||||
.remove_new = cs47l35_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(cs47l35_codec_driver);
|
||||
|
@ -2695,7 +2695,7 @@ error_core:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int cs47l85_remove(struct platform_device *pdev)
|
||||
static void cs47l85_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct cs47l85 *cs47l85 = platform_get_drvdata(pdev);
|
||||
int i;
|
||||
@ -2709,8 +2709,6 @@ static int cs47l85_remove(struct platform_device *pdev)
|
||||
madera_free_irq(cs47l85->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l85);
|
||||
madera_free_overheat(&cs47l85->core);
|
||||
madera_core_free(&cs47l85->core);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver cs47l85_codec_driver = {
|
||||
@ -2718,7 +2716,7 @@ static struct platform_driver cs47l85_codec_driver = {
|
||||
.name = "cs47l85-codec",
|
||||
},
|
||||
.probe = &cs47l85_probe,
|
||||
.remove = &cs47l85_remove,
|
||||
.remove_new = cs47l85_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(cs47l85_codec_driver);
|
||||
|
@ -2618,7 +2618,7 @@ error_core:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int cs47l90_remove(struct platform_device *pdev)
|
||||
static void cs47l90_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct cs47l90 *cs47l90 = platform_get_drvdata(pdev);
|
||||
int i;
|
||||
@ -2633,8 +2633,6 @@ static int cs47l90_remove(struct platform_device *pdev)
|
||||
madera_set_irq_wake(cs47l90->core.madera, MADERA_IRQ_DSP_IRQ1, 0);
|
||||
madera_free_irq(cs47l90->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l90);
|
||||
madera_core_free(&cs47l90->core);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver cs47l90_codec_driver = {
|
||||
@ -2642,7 +2640,7 @@ static struct platform_driver cs47l90_codec_driver = {
|
||||
.name = "cs47l90-codec",
|
||||
},
|
||||
.probe = &cs47l90_probe,
|
||||
.remove = &cs47l90_remove,
|
||||
.remove_new = cs47l90_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(cs47l90_codec_driver);
|
||||
|
@ -2068,7 +2068,7 @@ error_core:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int cs47l92_remove(struct platform_device *pdev)
|
||||
static void cs47l92_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct cs47l92 *cs47l92 = platform_get_drvdata(pdev);
|
||||
|
||||
@ -2081,8 +2081,6 @@ static int cs47l92_remove(struct platform_device *pdev)
|
||||
madera_free_irq(cs47l92->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l92);
|
||||
|
||||
madera_core_free(&cs47l92->core);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver cs47l92_codec_driver = {
|
||||
@ -2090,7 +2088,7 @@ static struct platform_driver cs47l92_codec_driver = {
|
||||
.name = "cs47l92-codec",
|
||||
},
|
||||
.probe = &cs47l92_probe,
|
||||
.remove = &cs47l92_remove,
|
||||
.remove_new = cs47l92_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(cs47l92_codec_driver);
|
||||
|
@ -457,13 +457,11 @@ static int rk3036_codec_platform_probe(struct platform_device *pdev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int rk3036_codec_platform_remove(struct platform_device *pdev)
|
||||
static void rk3036_codec_platform_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct rk3036_codec_priv *priv = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
clk_disable_unprepare(priv->pclk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id rk3036_codec_of_match[] __maybe_unused = {
|
||||
@ -478,7 +476,7 @@ static struct platform_driver rk3036_codec_platform_driver = {
|
||||
.of_match_table = of_match_ptr(rk3036_codec_of_match),
|
||||
},
|
||||
.probe = rk3036_codec_platform_probe,
|
||||
.remove = rk3036_codec_platform_remove,
|
||||
.remove_new = rk3036_codec_platform_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(rk3036_codec_platform_driver);
|
||||
|
@ -3639,7 +3639,7 @@ err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int rx_macro_remove(struct platform_device *pdev)
|
||||
static void rx_macro_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct rx_macro *rx = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
@ -3650,8 +3650,6 @@ static int rx_macro_remove(struct platform_device *pdev)
|
||||
clk_disable_unprepare(rx->dcodec);
|
||||
|
||||
lpass_macro_pds_exit(rx->pds);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id rx_macro_dt_match[] = {
|
||||
@ -3723,7 +3721,7 @@ static struct platform_driver rx_macro_driver = {
|
||||
.pm = &rx_macro_pm_ops,
|
||||
},
|
||||
.probe = rx_macro_probe,
|
||||
.remove = rx_macro_remove,
|
||||
.remove_new = rx_macro_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(rx_macro_driver);
|
||||
|
@ -2076,7 +2076,7 @@ err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int tx_macro_remove(struct platform_device *pdev)
|
||||
static void tx_macro_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct tx_macro *tx = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
@ -2087,8 +2087,6 @@ static int tx_macro_remove(struct platform_device *pdev)
|
||||
clk_disable_unprepare(tx->fsgen);
|
||||
|
||||
lpass_macro_pds_exit(tx->pds);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __maybe_unused tx_macro_runtime_suspend(struct device *dev)
|
||||
@ -2160,7 +2158,7 @@ static struct platform_driver tx_macro_driver = {
|
||||
.pm = &tx_macro_pm_ops,
|
||||
},
|
||||
.probe = tx_macro_probe,
|
||||
.remove = tx_macro_remove,
|
||||
.remove_new = tx_macro_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(tx_macro_driver);
|
||||
|
@ -1575,7 +1575,7 @@ err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int va_macro_remove(struct platform_device *pdev)
|
||||
static void va_macro_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct va_macro *va = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
@ -1584,8 +1584,6 @@ static int va_macro_remove(struct platform_device *pdev)
|
||||
clk_disable_unprepare(va->macro);
|
||||
|
||||
lpass_macro_pds_exit(va->pds);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __maybe_unused va_macro_runtime_suspend(struct device *dev)
|
||||
@ -1639,7 +1637,7 @@ static struct platform_driver va_macro_driver = {
|
||||
.pm = &va_macro_pm_ops,
|
||||
},
|
||||
.probe = va_macro_probe,
|
||||
.remove = va_macro_remove,
|
||||
.remove_new = va_macro_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(va_macro_driver);
|
||||
|
@ -2486,7 +2486,7 @@ err:
|
||||
|
||||
}
|
||||
|
||||
static int wsa_macro_remove(struct platform_device *pdev)
|
||||
static void wsa_macro_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct wsa_macro *wsa = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
@ -2495,8 +2495,6 @@ static int wsa_macro_remove(struct platform_device *pdev)
|
||||
clk_disable_unprepare(wsa->mclk);
|
||||
clk_disable_unprepare(wsa->npl);
|
||||
clk_disable_unprepare(wsa->fsgen);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __maybe_unused wsa_macro_runtime_suspend(struct device *dev)
|
||||
@ -2568,7 +2566,7 @@ static struct platform_driver wsa_macro_driver = {
|
||||
.pm = &wsa_macro_pm_ops,
|
||||
},
|
||||
.probe = wsa_macro_probe,
|
||||
.remove = wsa_macro_remove,
|
||||
.remove_new = wsa_macro_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(wsa_macro_driver);
|
||||
|
@ -1276,13 +1276,11 @@ err_disable_clk:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int pm8916_wcd_analog_spmi_remove(struct platform_device *pdev)
|
||||
static void pm8916_wcd_analog_spmi_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct pm8916_wcd_analog_priv *priv = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
clk_disable_unprepare(priv->mclk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id pm8916_wcd_analog_spmi_match_table[] = {
|
||||
@ -1298,7 +1296,7 @@ static struct platform_driver pm8916_wcd_analog_spmi_driver = {
|
||||
.of_match_table = pm8916_wcd_analog_spmi_match_table,
|
||||
},
|
||||
.probe = pm8916_wcd_analog_spmi_probe,
|
||||
.remove = pm8916_wcd_analog_spmi_remove,
|
||||
.remove_new = pm8916_wcd_analog_spmi_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(pm8916_wcd_analog_spmi_driver);
|
||||
|
@ -1220,14 +1220,12 @@ err_clk:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int msm8916_wcd_digital_remove(struct platform_device *pdev)
|
||||
static void msm8916_wcd_digital_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct msm8916_wcd_digital_priv *priv = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
clk_disable_unprepare(priv->mclk);
|
||||
clk_disable_unprepare(priv->ahbclk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id msm8916_wcd_digital_match_table[] = {
|
||||
@ -1243,7 +1241,7 @@ static struct platform_driver msm8916_wcd_digital_driver = {
|
||||
.of_match_table = msm8916_wcd_digital_match_table,
|
||||
},
|
||||
.probe = msm8916_wcd_digital_probe,
|
||||
.remove = msm8916_wcd_digital_remove,
|
||||
.remove_new = msm8916_wcd_digital_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(msm8916_wcd_digital_driver);
|
||||
|
@ -518,13 +518,11 @@ err_:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int rk817_platform_remove(struct platform_device *pdev)
|
||||
static void rk817_platform_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct rk817_codec_priv *rk817 = platform_get_drvdata(pdev);
|
||||
|
||||
clk_disable_unprepare(rk817->mclk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver rk817_codec_driver = {
|
||||
@ -532,7 +530,7 @@ static struct platform_driver rk817_codec_driver = {
|
||||
.name = "rk817-codec",
|
||||
},
|
||||
.probe = rk817_platform_probe,
|
||||
.remove = rk817_platform_remove,
|
||||
.remove_new = rk817_platform_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(rk817_codec_driver);
|
||||
|
@ -4529,11 +4529,9 @@ static int wcd938x_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int wcd938x_remove(struct platform_device *pdev)
|
||||
static void wcd938x_remove(struct platform_device *pdev)
|
||||
{
|
||||
component_master_del(&pdev->dev, &wcd938x_comp_ops);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_OF)
|
||||
@ -4547,7 +4545,7 @@ MODULE_DEVICE_TABLE(of, wcd938x_dt_match);
|
||||
|
||||
static struct platform_driver wcd938x_codec_driver = {
|
||||
.probe = wcd938x_probe,
|
||||
.remove = wcd938x_remove,
|
||||
.remove_new = wcd938x_remove,
|
||||
.driver = {
|
||||
.name = "wcd938x_codec",
|
||||
.of_match_table = of_match_ptr(wcd938x_dt_match),
|
||||
|
@ -2148,7 +2148,7 @@ err_jack_codec_dev:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int wm5102_remove(struct platform_device *pdev)
|
||||
static void wm5102_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct wm5102_priv *wm5102 = platform_get_drvdata(pdev);
|
||||
struct arizona *arizona = wm5102->core.arizona;
|
||||
@ -2163,8 +2163,6 @@ static int wm5102_remove(struct platform_device *pdev)
|
||||
arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5102);
|
||||
|
||||
arizona_jack_codec_dev_remove(&wm5102->core);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver wm5102_codec_driver = {
|
||||
@ -2172,7 +2170,7 @@ static struct platform_driver wm5102_codec_driver = {
|
||||
.name = "wm5102-codec",
|
||||
},
|
||||
.probe = wm5102_probe,
|
||||
.remove = wm5102_remove,
|
||||
.remove_new = wm5102_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(wm5102_codec_driver);
|
||||
|
@ -2506,7 +2506,7 @@ err_jack_codec_dev:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int wm5110_remove(struct platform_device *pdev)
|
||||
static void wm5110_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct wm5110_priv *wm5110 = platform_get_drvdata(pdev);
|
||||
struct arizona *arizona = wm5110->core.arizona;
|
||||
@ -2523,8 +2523,6 @@ static int wm5110_remove(struct platform_device *pdev)
|
||||
arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5110);
|
||||
|
||||
arizona_jack_codec_dev_remove(&wm5110->core);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver wm5110_codec_driver = {
|
||||
@ -2532,7 +2530,7 @@ static struct platform_driver wm5110_codec_driver = {
|
||||
.name = "wm5110-codec",
|
||||
},
|
||||
.probe = wm5110_probe,
|
||||
.remove = wm5110_remove,
|
||||
.remove_new = wm5110_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(wm5110_codec_driver);
|
||||
|
@ -4657,11 +4657,9 @@ static int wm8994_probe(struct platform_device *pdev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int wm8994_remove(struct platform_device *pdev)
|
||||
static void wm8994_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
@ -4701,7 +4699,7 @@ static struct platform_driver wm8994_codec_driver = {
|
||||
.pm = &wm8994_pm_ops,
|
||||
},
|
||||
.probe = wm8994_probe,
|
||||
.remove = wm8994_remove,
|
||||
.remove_new = wm8994_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(wm8994_codec_driver);
|
||||
|
@ -1193,7 +1193,7 @@ err_jack_codec_dev:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int wm8997_remove(struct platform_device *pdev)
|
||||
static void wm8997_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct wm8997_priv *wm8997 = platform_get_drvdata(pdev);
|
||||
struct arizona *arizona = wm8997->core.arizona;
|
||||
@ -1203,8 +1203,6 @@ static int wm8997_remove(struct platform_device *pdev)
|
||||
arizona_free_spk_irqs(arizona);
|
||||
|
||||
arizona_jack_codec_dev_remove(&wm8997->core);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver wm8997_codec_driver = {
|
||||
@ -1212,7 +1210,7 @@ static struct platform_driver wm8997_codec_driver = {
|
||||
.name = "wm8997-codec",
|
||||
},
|
||||
.probe = wm8997_probe,
|
||||
.remove = wm8997_remove,
|
||||
.remove_new = wm8997_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(wm8997_codec_driver);
|
||||
|
@ -1409,7 +1409,7 @@ err_pm_disable:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int wm8998_remove(struct platform_device *pdev)
|
||||
static void wm8998_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct wm8998_priv *wm8998 = platform_get_drvdata(pdev);
|
||||
struct arizona *arizona = wm8998->core.arizona;
|
||||
@ -1419,8 +1419,6 @@ static int wm8998_remove(struct platform_device *pdev)
|
||||
arizona_free_spk_irqs(arizona);
|
||||
|
||||
arizona_jack_codec_dev_remove(&wm8998->core);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver wm8998_codec_driver = {
|
||||
@ -1428,7 +1426,7 @@ static struct platform_driver wm8998_codec_driver = {
|
||||
.name = "wm8998-codec",
|
||||
},
|
||||
.probe = wm8998_probe,
|
||||
.remove = wm8998_remove,
|
||||
.remove_new = wm8998_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(wm8998_codec_driver);
|
||||
|
@ -730,7 +730,7 @@ err_clk_disable:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int dw_i2s_remove(struct platform_device *pdev)
|
||||
static void dw_i2s_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct dw_i2s_dev *dev = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
@ -738,7 +738,6 @@ static int dw_i2s_remove(struct platform_device *pdev)
|
||||
clk_disable_unprepare(dev->clk);
|
||||
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
@ -756,7 +755,7 @@ static const struct dev_pm_ops dwc_pm_ops = {
|
||||
|
||||
static struct platform_driver dw_i2s_driver = {
|
||||
.probe = dw_i2s_probe,
|
||||
.remove = dw_i2s_remove,
|
||||
.remove_new = dw_i2s_remove,
|
||||
.driver = {
|
||||
.name = "designware-i2s",
|
||||
.of_match_table = of_match_ptr(dw_i2s_of_match),
|
||||
|
@ -205,11 +205,9 @@ err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int eukrea_tlv320_remove(struct platform_device *pdev)
|
||||
static void eukrea_tlv320_remove(struct platform_device *pdev)
|
||||
{
|
||||
snd_soc_unregister_card(&eukrea_tlv320);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id imx_tlv320_dt_ids[] = {
|
||||
@ -224,7 +222,7 @@ static struct platform_driver eukrea_tlv320_driver = {
|
||||
.of_match_table = imx_tlv320_dt_ids,
|
||||
},
|
||||
.probe = eukrea_tlv320_probe,
|
||||
.remove = eukrea_tlv320_remove,
|
||||
.remove_new = eukrea_tlv320_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(eukrea_tlv320_driver);
|
||||
|
@ -1252,13 +1252,11 @@ err_pm_disable:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int fsl_asrc_remove(struct platform_device *pdev)
|
||||
static void fsl_asrc_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
if (!pm_runtime_status_suspended(&pdev->dev))
|
||||
fsl_asrc_runtime_suspend(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int fsl_asrc_runtime_resume(struct device *dev)
|
||||
@ -1394,7 +1392,7 @@ MODULE_DEVICE_TABLE(of, fsl_asrc_ids);
|
||||
|
||||
static struct platform_driver fsl_asrc_driver = {
|
||||
.probe = fsl_asrc_probe,
|
||||
.remove = fsl_asrc_remove,
|
||||
.remove_new = fsl_asrc_remove,
|
||||
.driver = {
|
||||
.name = "fsl-asrc",
|
||||
.of_match_table = fsl_asrc_ids,
|
||||
|
@ -257,11 +257,9 @@ static int fsl_aud2htx_probe(struct platform_device *pdev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int fsl_aud2htx_remove(struct platform_device *pdev)
|
||||
static void fsl_aud2htx_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __maybe_unused fsl_aud2htx_runtime_suspend(struct device *dev)
|
||||
@ -300,7 +298,7 @@ static const struct dev_pm_ops fsl_aud2htx_pm_ops = {
|
||||
|
||||
static struct platform_driver fsl_aud2htx_driver = {
|
||||
.probe = fsl_aud2htx_probe,
|
||||
.remove = fsl_aud2htx_remove,
|
||||
.remove_new = fsl_aud2htx_remove,
|
||||
.driver = {
|
||||
.name = "fsl-aud2htx",
|
||||
.pm = &fsl_aud2htx_pm_ops,
|
||||
|
@ -506,7 +506,7 @@ err_disable_pm:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int fsl_audmix_remove(struct platform_device *pdev)
|
||||
static void fsl_audmix_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fsl_audmix *priv = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
@ -514,8 +514,6 @@ static int fsl_audmix_remove(struct platform_device *pdev)
|
||||
|
||||
if (priv->pdev)
|
||||
platform_device_unregister(priv->pdev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
@ -558,7 +556,7 @@ static const struct dev_pm_ops fsl_audmix_pm = {
|
||||
|
||||
static struct platform_driver fsl_audmix_driver = {
|
||||
.probe = fsl_audmix_probe,
|
||||
.remove = fsl_audmix_remove,
|
||||
.remove_new = fsl_audmix_remove,
|
||||
.driver = {
|
||||
.name = "fsl-audmix",
|
||||
.of_match_table = fsl_audmix_ids,
|
||||
|
@ -890,15 +890,13 @@ static int fsl_soc_dma_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int fsl_soc_dma_remove(struct platform_device *pdev)
|
||||
static void fsl_soc_dma_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct dma_object *dma = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
iounmap(dma->channel);
|
||||
irq_dispose_mapping(dma->irq);
|
||||
kfree(dma);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id fsl_soc_dma_ids[] = {
|
||||
@ -913,7 +911,7 @@ static struct platform_driver fsl_soc_dma_driver = {
|
||||
.of_match_table = fsl_soc_dma_ids,
|
||||
},
|
||||
.probe = fsl_soc_dma_probe,
|
||||
.remove = fsl_soc_dma_remove,
|
||||
.remove_new = fsl_soc_dma_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(fsl_soc_dma_driver);
|
||||
|
@ -1979,11 +1979,9 @@ static int fsl_easrc_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int fsl_easrc_remove(struct platform_device *pdev)
|
||||
static void fsl_easrc_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static __maybe_unused int fsl_easrc_runtime_suspend(struct device *dev)
|
||||
@ -2093,7 +2091,7 @@ static const struct dev_pm_ops fsl_easrc_pm_ops = {
|
||||
|
||||
static struct platform_driver fsl_easrc_driver = {
|
||||
.probe = fsl_easrc_probe,
|
||||
.remove = fsl_easrc_remove,
|
||||
.remove_new = fsl_easrc_remove,
|
||||
.driver = {
|
||||
.name = "fsl-easrc",
|
||||
.pm = &fsl_easrc_pm_ops,
|
||||
|
@ -1101,7 +1101,7 @@ err_pm_disable:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int fsl_esai_remove(struct platform_device *pdev)
|
||||
static void fsl_esai_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fsl_esai *esai_priv = platform_get_drvdata(pdev);
|
||||
|
||||
@ -1110,8 +1110,6 @@ static int fsl_esai_remove(struct platform_device *pdev)
|
||||
fsl_esai_runtime_suspend(&pdev->dev);
|
||||
|
||||
cancel_work_sync(&esai_priv->work);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id fsl_esai_dt_ids[] = {
|
||||
@ -1200,7 +1198,7 @@ static const struct dev_pm_ops fsl_esai_pm_ops = {
|
||||
|
||||
static struct platform_driver fsl_esai_driver = {
|
||||
.probe = fsl_esai_probe,
|
||||
.remove = fsl_esai_remove,
|
||||
.remove_new = fsl_esai_remove,
|
||||
.driver = {
|
||||
.name = "fsl-esai-dai",
|
||||
.pm = &fsl_esai_pm_ops,
|
||||
|
@ -261,10 +261,9 @@ err_free_gpr_np:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int fsl_mqs_remove(struct platform_device *pdev)
|
||||
static void fsl_mqs_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
@ -360,7 +359,7 @@ MODULE_DEVICE_TABLE(of, fsl_mqs_dt_ids);
|
||||
|
||||
static struct platform_driver fsl_mqs_driver = {
|
||||
.probe = fsl_mqs_probe,
|
||||
.remove = fsl_mqs_remove,
|
||||
.remove_new = fsl_mqs_remove,
|
||||
.driver = {
|
||||
.name = "fsl-mqs",
|
||||
.of_match_table = fsl_mqs_dt_ids,
|
||||
|
@ -247,14 +247,12 @@ static int fsl_rpmsg_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int fsl_rpmsg_remove(struct platform_device *pdev)
|
||||
static void fsl_rpmsg_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fsl_rpmsg *rpmsg = platform_get_drvdata(pdev);
|
||||
|
||||
if (rpmsg->card_pdev)
|
||||
platform_device_unregister(rpmsg->card_pdev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
@ -302,7 +300,7 @@ static const struct dev_pm_ops fsl_rpmsg_pm_ops = {
|
||||
|
||||
static struct platform_driver fsl_rpmsg_driver = {
|
||||
.probe = fsl_rpmsg_probe,
|
||||
.remove = fsl_rpmsg_remove,
|
||||
.remove_new = fsl_rpmsg_remove,
|
||||
.driver = {
|
||||
.name = "fsl_rpmsg",
|
||||
.pm = &fsl_rpmsg_pm_ops,
|
||||
|
@ -1489,13 +1489,11 @@ err_pm_disable:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int fsl_sai_remove(struct platform_device *pdev)
|
||||
static void fsl_sai_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
if (!pm_runtime_status_suspended(&pdev->dev))
|
||||
fsl_sai_runtime_suspend(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct fsl_sai_soc_data fsl_sai_vf610_data = {
|
||||
@ -1696,7 +1694,7 @@ static const struct dev_pm_ops fsl_sai_pm_ops = {
|
||||
|
||||
static struct platform_driver fsl_sai_driver = {
|
||||
.probe = fsl_sai_probe,
|
||||
.remove = fsl_sai_remove,
|
||||
.remove_new = fsl_sai_remove,
|
||||
.driver = {
|
||||
.name = "fsl-sai",
|
||||
.pm = &fsl_sai_pm_ops,
|
||||
|
@ -1659,11 +1659,9 @@ err_pm_disable:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int fsl_spdif_remove(struct platform_device *pdev)
|
||||
static void fsl_spdif_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
@ -1765,7 +1763,7 @@ static struct platform_driver fsl_spdif_driver = {
|
||||
.pm = &fsl_spdif_pm,
|
||||
},
|
||||
.probe = fsl_spdif_probe,
|
||||
.remove = fsl_spdif_remove,
|
||||
.remove_new = fsl_spdif_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(fsl_spdif_driver);
|
||||
|
@ -1671,7 +1671,7 @@ error_ac97_ops:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int fsl_ssi_remove(struct platform_device *pdev)
|
||||
static void fsl_ssi_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fsl_ssi *ssi = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
@ -1690,8 +1690,6 @@ static int fsl_ssi_remove(struct platform_device *pdev)
|
||||
snd_soc_set_ac97_ops(NULL);
|
||||
mutex_destroy(&ssi->ac97_reg_lock);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
@ -1737,7 +1735,7 @@ static struct platform_driver fsl_ssi_driver = {
|
||||
.pm = &fsl_ssi_pm,
|
||||
},
|
||||
.probe = fsl_ssi_probe,
|
||||
.remove = fsl_ssi_remove,
|
||||
.remove_new = fsl_ssi_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(fsl_ssi_driver);
|
||||
|
@ -1339,10 +1339,9 @@ static int fsl_xcvr_probe(struct platform_device *pdev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int fsl_xcvr_remove(struct platform_device *pdev)
|
||||
static void fsl_xcvr_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static __maybe_unused int fsl_xcvr_runtime_suspend(struct device *dev)
|
||||
@ -1478,7 +1477,7 @@ static struct platform_driver fsl_xcvr_driver = {
|
||||
.pm = &fsl_xcvr_pm_ops,
|
||||
.of_match_table = fsl_xcvr_dt_ids,
|
||||
},
|
||||
.remove = fsl_xcvr_remove,
|
||||
.remove_new = fsl_xcvr_remove,
|
||||
};
|
||||
module_platform_driver(fsl_xcvr_driver);
|
||||
|
||||
|
@ -315,12 +315,10 @@ static int imx_audmux_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int imx_audmux_remove(struct platform_device *pdev)
|
||||
static void imx_audmux_remove(struct platform_device *pdev)
|
||||
{
|
||||
if (audmux_type == IMX31_AUDMUX)
|
||||
audmux_debugfs_remove();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
@ -359,7 +357,7 @@ static const struct dev_pm_ops imx_audmux_pm = {
|
||||
|
||||
static struct platform_driver imx_audmux_driver = {
|
||||
.probe = imx_audmux_probe,
|
||||
.remove = imx_audmux_remove,
|
||||
.remove_new = imx_audmux_remove,
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.pm = &imx_audmux_pm,
|
||||
|
@ -743,14 +743,12 @@ fail:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int imx_rpmsg_pcm_remove(struct platform_device *pdev)
|
||||
static void imx_rpmsg_pcm_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct rpmsg_info *info = platform_get_drvdata(pdev);
|
||||
|
||||
if (info->rpmsg_wq)
|
||||
destroy_workqueue(info->rpmsg_wq);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
@ -821,7 +819,7 @@ static const struct dev_pm_ops imx_rpmsg_pcm_pm_ops = {
|
||||
|
||||
static struct platform_driver imx_pcm_rpmsg_driver = {
|
||||
.probe = imx_rpmsg_pcm_probe,
|
||||
.remove = imx_rpmsg_pcm_remove,
|
||||
.remove_new = imx_rpmsg_pcm_remove,
|
||||
.driver = {
|
||||
.name = IMX_PCM_DRV_NAME,
|
||||
.pm = &imx_rpmsg_pcm_pm_ops,
|
||||
|
@ -193,14 +193,12 @@ fail:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int imx_sgtl5000_remove(struct platform_device *pdev)
|
||||
static void imx_sgtl5000_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
struct imx_sgtl5000_data *data = snd_soc_card_get_drvdata(card);
|
||||
|
||||
clk_put(data->codec_clk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id imx_sgtl5000_dt_ids[] = {
|
||||
@ -216,7 +214,7 @@ static struct platform_driver imx_sgtl5000_driver = {
|
||||
.of_match_table = imx_sgtl5000_dt_ids,
|
||||
},
|
||||
.probe = imx_sgtl5000_probe,
|
||||
.remove = imx_sgtl5000_remove,
|
||||
.remove_new = imx_sgtl5000_remove,
|
||||
};
|
||||
module_platform_driver(imx_sgtl5000_driver);
|
||||
|
||||
|
@ -311,12 +311,11 @@ static int psc_ac97_of_probe(struct platform_device *op)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int psc_ac97_of_remove(struct platform_device *op)
|
||||
static void psc_ac97_of_remove(struct platform_device *op)
|
||||
{
|
||||
mpc5200_audio_dma_destroy(op);
|
||||
snd_soc_unregister_component(&op->dev);
|
||||
snd_soc_set_ac97_ops(NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Match table for of_platform binding */
|
||||
@ -329,7 +328,7 @@ MODULE_DEVICE_TABLE(of, psc_ac97_match);
|
||||
|
||||
static struct platform_driver psc_ac97_driver = {
|
||||
.probe = psc_ac97_of_probe,
|
||||
.remove = psc_ac97_of_remove,
|
||||
.remove_new = psc_ac97_of_remove,
|
||||
.driver = {
|
||||
.name = "mpc5200-psc-ac97",
|
||||
.of_match_table = psc_ac97_match,
|
||||
|
@ -210,11 +210,10 @@ static int psc_i2s_of_probe(struct platform_device *op)
|
||||
|
||||
}
|
||||
|
||||
static int psc_i2s_of_remove(struct platform_device *op)
|
||||
static void psc_i2s_of_remove(struct platform_device *op)
|
||||
{
|
||||
mpc5200_audio_dma_destroy(op);
|
||||
snd_soc_unregister_component(&op->dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Match table for of_platform binding */
|
||||
@ -227,7 +226,7 @@ MODULE_DEVICE_TABLE(of, psc_i2s_match);
|
||||
|
||||
static struct platform_driver psc_i2s_driver = {
|
||||
.probe = psc_i2s_of_probe,
|
||||
.remove = psc_i2s_of_remove,
|
||||
.remove_new = psc_i2s_of_remove,
|
||||
.driver = {
|
||||
.name = "mpc5200-psc-i2s",
|
||||
.of_match_table = psc_i2s_match,
|
||||
|
@ -387,7 +387,7 @@ error_alloc:
|
||||
*
|
||||
* This function is called when the platform device is removed.
|
||||
*/
|
||||
static int mpc8610_hpcd_remove(struct platform_device *pdev)
|
||||
static void mpc8610_hpcd_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
struct mpc8610_hpcd_data *machine_data =
|
||||
@ -395,13 +395,11 @@ static int mpc8610_hpcd_remove(struct platform_device *pdev)
|
||||
|
||||
snd_soc_unregister_card(card);
|
||||
kfree(machine_data);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver mpc8610_hpcd_driver = {
|
||||
.probe = mpc8610_hpcd_probe,
|
||||
.remove = mpc8610_hpcd_remove,
|
||||
.remove_new = mpc8610_hpcd_remove,
|
||||
.driver = {
|
||||
/* The name must match 'compatible' property in the device tree,
|
||||
* in lowercase letters.
|
||||
|
@ -396,7 +396,7 @@ error_put:
|
||||
*
|
||||
* This function is called when the platform device is removed.
|
||||
*/
|
||||
static int p1022_ds_remove(struct platform_device *pdev)
|
||||
static void p1022_ds_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
struct machine_data *mdata =
|
||||
@ -404,13 +404,11 @@ static int p1022_ds_remove(struct platform_device *pdev)
|
||||
|
||||
snd_soc_unregister_card(card);
|
||||
kfree(mdata);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver p1022_ds_driver = {
|
||||
.probe = p1022_ds_probe,
|
||||
.remove = p1022_ds_remove,
|
||||
.remove_new = p1022_ds_remove,
|
||||
.driver = {
|
||||
/*
|
||||
* The name must match 'compatible' property in the device tree,
|
||||
|
@ -345,7 +345,7 @@ error_put:
|
||||
*
|
||||
* This function is called when the platform device is removed.
|
||||
*/
|
||||
static int p1022_rdk_remove(struct platform_device *pdev)
|
||||
static void p1022_rdk_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
struct machine_data *mdata =
|
||||
@ -353,13 +353,11 @@ static int p1022_rdk_remove(struct platform_device *pdev)
|
||||
|
||||
snd_soc_unregister_card(card);
|
||||
kfree(mdata);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver p1022_rdk_driver = {
|
||||
.probe = p1022_rdk_probe,
|
||||
.remove = p1022_rdk_remove,
|
||||
.remove_new = p1022_rdk_remove,
|
||||
.driver = {
|
||||
/*
|
||||
* The name must match 'compatible' property in the device tree,
|
||||
|
@ -109,14 +109,12 @@ static int pcm030_fabric_probe(struct platform_device *op)
|
||||
|
||||
}
|
||||
|
||||
static int pcm030_fabric_remove(struct platform_device *op)
|
||||
static void pcm030_fabric_remove(struct platform_device *op)
|
||||
{
|
||||
struct pcm030_audio_data *pdata = platform_get_drvdata(op);
|
||||
|
||||
snd_soc_unregister_card(pdata->card);
|
||||
platform_device_unregister(pdata->codec_device);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id pcm030_audio_match[] = {
|
||||
@ -127,7 +125,7 @@ MODULE_DEVICE_TABLE(of, pcm030_audio_match);
|
||||
|
||||
static struct platform_driver pcm030_fabric_driver = {
|
||||
.probe = pcm030_fabric_probe,
|
||||
.remove = pcm030_fabric_remove,
|
||||
.remove_new = pcm030_fabric_remove,
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.of_match_table = pcm030_audio_match,
|
||||
|
@ -635,11 +635,9 @@ static int test_driver_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int test_driver_remove(struct platform_device *pdev)
|
||||
static void test_driver_remove(struct platform_device *pdev)
|
||||
{
|
||||
mile_stone_x(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver test_driver = {
|
||||
@ -648,7 +646,7 @@ static struct platform_driver test_driver = {
|
||||
.of_match_table = test_of_match,
|
||||
},
|
||||
.probe = test_driver_probe,
|
||||
.remove = test_driver_remove,
|
||||
.remove_new = test_driver_remove,
|
||||
};
|
||||
module_platform_driver(test_driver);
|
||||
|
||||
|
@ -532,13 +532,11 @@ err_pm_disable:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int img_i2s_in_dev_remove(struct platform_device *pdev)
|
||||
static void img_i2s_in_dev_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
if (!pm_runtime_status_suspended(&pdev->dev))
|
||||
img_i2s_in_runtime_suspend(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
@ -609,7 +607,7 @@ static struct platform_driver img_i2s_in_driver = {
|
||||
.pm = &img_i2s_in_pm_ops
|
||||
},
|
||||
.probe = img_i2s_in_probe,
|
||||
.remove = img_i2s_in_dev_remove
|
||||
.remove_new = img_i2s_in_dev_remove
|
||||
};
|
||||
module_platform_driver(img_i2s_in_driver);
|
||||
|
||||
|
@ -532,13 +532,11 @@ err_pm_disable:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int img_i2s_out_dev_remove(struct platform_device *pdev)
|
||||
static void img_i2s_out_dev_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
if (!pm_runtime_status_suspended(&pdev->dev))
|
||||
img_i2s_out_runtime_suspend(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
@ -609,7 +607,7 @@ static struct platform_driver img_i2s_out_driver = {
|
||||
.pm = &img_i2s_out_pm_ops
|
||||
},
|
||||
.probe = img_i2s_out_probe,
|
||||
.remove = img_i2s_out_dev_remove
|
||||
.remove_new = img_i2s_out_dev_remove
|
||||
};
|
||||
module_platform_driver(img_i2s_out_driver);
|
||||
|
||||
|
@ -282,7 +282,7 @@ err_pm_disable:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int img_prl_out_dev_remove(struct platform_device *pdev)
|
||||
static void img_prl_out_dev_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct img_prl_out *prl = platform_get_drvdata(pdev);
|
||||
|
||||
@ -291,8 +291,6 @@ static int img_prl_out_dev_remove(struct platform_device *pdev)
|
||||
img_prl_out_suspend(&pdev->dev);
|
||||
|
||||
clk_disable_unprepare(prl->clk_sys);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id img_prl_out_of_match[] = {
|
||||
@ -313,7 +311,7 @@ static struct platform_driver img_prl_out_driver = {
|
||||
.pm = &img_prl_out_pm_ops
|
||||
},
|
||||
.probe = img_prl_out_probe,
|
||||
.remove = img_prl_out_dev_remove
|
||||
.remove_new = img_prl_out_dev_remove
|
||||
};
|
||||
module_platform_driver(img_prl_out_driver);
|
||||
|
||||
|
@ -810,13 +810,11 @@ err_pm_disable:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int img_spdif_in_dev_remove(struct platform_device *pdev)
|
||||
static void img_spdif_in_dev_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
if (!pm_runtime_status_suspended(&pdev->dev))
|
||||
img_spdif_in_runtime_suspend(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
@ -880,7 +878,7 @@ static struct platform_driver img_spdif_in_driver = {
|
||||
.pm = &img_spdif_in_pm_ops
|
||||
},
|
||||
.probe = img_spdif_in_probe,
|
||||
.remove = img_spdif_in_dev_remove
|
||||
.remove_new = img_spdif_in_dev_remove
|
||||
};
|
||||
module_platform_driver(img_spdif_in_driver);
|
||||
|
||||
|
@ -402,13 +402,11 @@ err_pm_disable:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int img_spdif_out_dev_remove(struct platform_device *pdev)
|
||||
static void img_spdif_out_dev_remove(struct platform_device *pdev)
|
||||
{
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
if (!pm_runtime_status_suspended(&pdev->dev))
|
||||
img_spdif_out_runtime_suspend(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
@ -470,7 +468,7 @@ static struct platform_driver img_spdif_out_driver = {
|
||||
.pm = &img_spdif_out_pm_ops
|
||||
},
|
||||
.probe = img_spdif_out_probe,
|
||||
.remove = img_spdif_out_dev_remove
|
||||
.remove_new = img_spdif_out_dev_remove
|
||||
};
|
||||
module_platform_driver(img_spdif_out_driver);
|
||||
|
||||
|
@ -215,15 +215,13 @@ err_regulator:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int pistachio_internal_dac_remove(struct platform_device *pdev)
|
||||
static void pistachio_internal_dac_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct pistachio_internal_dac *dac = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
pistachio_internal_dac_pwr_off(dac);
|
||||
regulator_disable(dac->supply);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
@ -273,7 +271,7 @@ static struct platform_driver pistachio_internal_dac_plat_driver = {
|
||||
.pm = &pistachio_internal_dac_pm_ops
|
||||
},
|
||||
.probe = pistachio_internal_dac_probe,
|
||||
.remove = pistachio_internal_dac_remove
|
||||
.remove_new = pistachio_internal_dac_remove
|
||||
};
|
||||
module_platform_driver(pistachio_internal_dac_plat_driver);
|
||||
|
||||
|
@ -741,10 +741,9 @@ static int sst_platform_probe(struct platform_device *pdev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int sst_platform_remove(struct platform_device *pdev)
|
||||
static void sst_platform_remove(struct platform_device *pdev)
|
||||
{
|
||||
dev_dbg(&pdev->dev, "sst_platform_remove success\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
@ -813,7 +812,7 @@ static struct platform_driver sst_platform_driver = {
|
||||
.pm = &sst_platform_pm,
|
||||
},
|
||||
.probe = sst_platform_probe,
|
||||
.remove = sst_platform_remove,
|
||||
.remove_new = sst_platform_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(sst_platform_driver);
|
||||
|
@ -335,14 +335,13 @@ static int sst_acpi_probe(struct platform_device *pdev)
|
||||
* This function is called by OS when a device is unloaded
|
||||
* This frees the interrupt etc
|
||||
*/
|
||||
static int sst_acpi_remove(struct platform_device *pdev)
|
||||
static void sst_acpi_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct intel_sst_drv *ctx;
|
||||
|
||||
ctx = platform_get_drvdata(pdev);
|
||||
sst_context_cleanup(ctx);
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct acpi_device_id sst_acpi_ids[] = {
|
||||
@ -360,7 +359,7 @@ static struct platform_driver sst_acpi_driver = {
|
||||
.pm = &intel_sst_pm,
|
||||
},
|
||||
.probe = sst_acpi_probe,
|
||||
.remove = sst_acpi_remove,
|
||||
.remove_new = sst_acpi_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(sst_acpi_driver);
|
||||
|
@ -628,7 +628,7 @@ err_put_codec:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int snd_byt_cht_es8316_mc_remove(struct platform_device *pdev)
|
||||
static void snd_byt_cht_es8316_mc_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
struct byt_cht_es8316_private *priv = snd_soc_card_get_drvdata(card);
|
||||
@ -636,7 +636,6 @@ static int snd_byt_cht_es8316_mc_remove(struct platform_device *pdev)
|
||||
gpiod_put(priv->speaker_en_gpio);
|
||||
device_remove_software_node(priv->codec_dev);
|
||||
put_device(priv->codec_dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver snd_byt_cht_es8316_mc_driver = {
|
||||
@ -644,7 +643,7 @@ static struct platform_driver snd_byt_cht_es8316_mc_driver = {
|
||||
.name = "bytcht_es8316",
|
||||
},
|
||||
.probe = snd_byt_cht_es8316_mc_probe,
|
||||
.remove = snd_byt_cht_es8316_mc_remove,
|
||||
.remove_new = snd_byt_cht_es8316_mc_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(snd_byt_cht_es8316_mc_driver);
|
||||
|
@ -1844,7 +1844,7 @@ err_device:
|
||||
return ret_val;
|
||||
}
|
||||
|
||||
static int snd_byt_rt5640_mc_remove(struct platform_device *pdev)
|
||||
static void snd_byt_rt5640_mc_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
struct byt_rt5640_private *priv = snd_soc_card_get_drvdata(card);
|
||||
@ -1854,7 +1854,6 @@ static int snd_byt_rt5640_mc_remove(struct platform_device *pdev)
|
||||
|
||||
device_remove_software_node(priv->codec_dev);
|
||||
put_device(priv->codec_dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver snd_byt_rt5640_mc_driver = {
|
||||
@ -1862,7 +1861,7 @@ static struct platform_driver snd_byt_rt5640_mc_driver = {
|
||||
.name = "bytcr_rt5640",
|
||||
},
|
||||
.probe = snd_byt_rt5640_mc_probe,
|
||||
.remove = snd_byt_rt5640_mc_remove,
|
||||
.remove_new = snd_byt_rt5640_mc_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(snd_byt_rt5640_mc_driver);
|
||||
|
@ -1127,14 +1127,13 @@ err_device:
|
||||
return ret_val;
|
||||
}
|
||||
|
||||
static int snd_byt_rt5651_mc_remove(struct platform_device *pdev)
|
||||
static void snd_byt_rt5651_mc_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
struct byt_rt5651_private *priv = snd_soc_card_get_drvdata(card);
|
||||
|
||||
device_remove_software_node(priv->codec_dev);
|
||||
put_device(priv->codec_dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver snd_byt_rt5651_mc_driver = {
|
||||
@ -1142,7 +1141,7 @@ static struct platform_driver snd_byt_rt5651_mc_driver = {
|
||||
.name = "bytcr_rt5651",
|
||||
},
|
||||
.probe = snd_byt_rt5651_mc_probe,
|
||||
.remove = snd_byt_rt5651_mc_remove,
|
||||
.remove_new = snd_byt_rt5651_mc_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(snd_byt_rt5651_mc_driver);
|
||||
|
@ -466,13 +466,12 @@ out_put_gpio:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int snd_byt_wm5102_mc_remove(struct platform_device *pdev)
|
||||
static void snd_byt_wm5102_mc_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
struct byt_wm5102_private *priv = snd_soc_card_get_drvdata(card);
|
||||
|
||||
gpiod_put(priv->spkvdd_en_gpio);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver snd_byt_wm5102_mc_driver = {
|
||||
@ -480,7 +479,7 @@ static struct platform_driver snd_byt_wm5102_mc_driver = {
|
||||
.name = "bytcr_wm5102",
|
||||
},
|
||||
.probe = snd_byt_wm5102_mc_probe,
|
||||
.remove = snd_byt_wm5102_mc_remove,
|
||||
.remove_new = snd_byt_wm5102_mc_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(snd_byt_wm5102_mc_driver);
|
||||
|
@ -623,15 +623,13 @@ static int snd_cht_mc_probe(struct platform_device *pdev)
|
||||
return ret_val;
|
||||
}
|
||||
|
||||
static int snd_cht_mc_remove(struct platform_device *pdev)
|
||||
static void snd_cht_mc_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
struct cht_mc_private *ctx = snd_soc_card_get_drvdata(card);
|
||||
|
||||
if (ctx->quirks & QUIRK_PMC_PLT_CLK_0)
|
||||
clk_disable_unprepare(ctx->mclk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver snd_cht_mc_driver = {
|
||||
@ -639,7 +637,7 @@ static struct platform_driver snd_cht_mc_driver = {
|
||||
.name = "cht-bsw-max98090",
|
||||
},
|
||||
.probe = snd_cht_mc_probe,
|
||||
.remove = snd_cht_mc_remove,
|
||||
.remove_new = snd_cht_mc_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(snd_cht_mc_driver)
|
||||
|
@ -780,7 +780,7 @@ err_put_codec:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int sof_es8336_remove(struct platform_device *pdev)
|
||||
static void sof_es8336_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
struct sof_es8336_private *priv = snd_soc_card_get_drvdata(card);
|
||||
@ -789,8 +789,6 @@ static int sof_es8336_remove(struct platform_device *pdev)
|
||||
gpiod_put(priv->gpio_speakers);
|
||||
device_remove_software_node(priv->codec_dev);
|
||||
put_device(priv->codec_dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct platform_device_id board_ids[] = {
|
||||
@ -817,7 +815,7 @@ static struct platform_driver sof_es8336_driver = {
|
||||
.pm = &snd_soc_pm_ops,
|
||||
},
|
||||
.probe = sof_es8336_probe,
|
||||
.remove = sof_es8336_remove,
|
||||
.remove_new = sof_es8336_remove,
|
||||
.id_table = board_ids,
|
||||
};
|
||||
module_platform_driver(sof_es8336_driver);
|
||||
|
@ -416,7 +416,7 @@ static int sof_audio_probe(struct platform_device *pdev)
|
||||
&sof_audio_card_pcm512x);
|
||||
}
|
||||
|
||||
static int sof_pcm512x_remove(struct platform_device *pdev)
|
||||
static void sof_pcm512x_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
struct snd_soc_component *component;
|
||||
@ -427,13 +427,11 @@ static int sof_pcm512x_remove(struct platform_device *pdev)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver sof_audio = {
|
||||
.probe = sof_audio_probe,
|
||||
.remove = sof_pcm512x_remove,
|
||||
.remove_new = sof_pcm512x_remove,
|
||||
.driver = {
|
||||
.name = "sof_pcm512x",
|
||||
.pm = &snd_soc_pm_ops,
|
||||
|
@ -1602,13 +1602,11 @@ static int mc_probe(struct platform_device *pdev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int mc_remove(struct platform_device *pdev)
|
||||
static void mc_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
|
||||
mc_dailink_exit_loop(card);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver sof_sdw_driver = {
|
||||
@ -1617,7 +1615,7 @@ static struct platform_driver sof_sdw_driver = {
|
||||
.pm = &snd_soc_pm_ops,
|
||||
},
|
||||
.probe = mc_probe,
|
||||
.remove = mc_remove,
|
||||
.remove_new = mc_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(sof_sdw_driver);
|
||||
|
@ -278,11 +278,10 @@ static int sof_wm8804_probe(struct platform_device *pdev)
|
||||
return devm_snd_soc_register_card(&pdev->dev, card);
|
||||
}
|
||||
|
||||
static int sof_wm8804_remove(struct platform_device *pdev)
|
||||
static void sof_wm8804_remove(struct platform_device *pdev)
|
||||
{
|
||||
if (sof_wm8804_quirk & SOF_WM8804_UP2_QUIRK)
|
||||
gpiod_remove_lookup_table(&up2_gpios_table);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver sof_wm8804_driver = {
|
||||
@ -291,7 +290,7 @@ static struct platform_driver sof_wm8804_driver = {
|
||||
.pm = &snd_soc_pm_ops,
|
||||
},
|
||||
.probe = sof_wm8804_probe,
|
||||
.remove = sof_wm8804_remove,
|
||||
.remove_new = sof_wm8804_remove,
|
||||
};
|
||||
module_platform_driver(sof_wm8804_driver);
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user