summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/cs4271-spi.c
diff options
context:
space:
mode:
authorKuninori Morimoto2018-01-29 04:50:28 +0100
committerMark Brown2018-02-12 10:38:34 +0100
commitcac308fcd767a077e1119901d8bdd69e31189f67 (patch)
treeba9b8e37b0d5ceacc57d7acf2929af8e0f4c4512 /sound/soc/codecs/cs4271-spi.c
parentLinux 4.16-rc1 (diff)
downloadkernel-qcow2-linux-cac308fcd767a077e1119901d8bdd69e31189f67.tar.gz
kernel-qcow2-linux-cac308fcd767a077e1119901d8bdd69e31189f67.tar.xz
kernel-qcow2-linux-cac308fcd767a077e1119901d8bdd69e31189f67.zip
ASoC: cs4271: replace codec to component
Now we can replace Codec to Component. Let's do it. Note: xxx_codec_xxx() -> xxx_component_xxx() .idle_bias_off = 0 -> .idle_bias_on = 1 .ignore_pmdown_time = 0 -> .use_pmdown_time = 1 - -> .endianness = 1 - -> .non_legacy_dai_naming = 1 Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs4271-spi.c')
-rw-r--r--sound/soc/codecs/cs4271-spi.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sound/soc/codecs/cs4271-spi.c b/sound/soc/codecs/cs4271-spi.c
index 1ff5f520196a..217f6dc869e5 100644
--- a/sound/soc/codecs/cs4271-spi.c
+++ b/sound/soc/codecs/cs4271-spi.c
@@ -33,19 +33,12 @@ static int cs4271_spi_probe(struct spi_device *spi)
return cs4271_probe(&spi->dev, devm_regmap_init_spi(spi, &config));
}
-static int cs4271_spi_remove(struct spi_device *spi)
-{
- snd_soc_unregister_codec(&spi->dev);
- return 0;
-}
-
static struct spi_driver cs4271_spi_driver = {
.driver = {
.name = "cs4271",
.of_match_table = of_match_ptr(cs4271_dt_ids),
},
.probe = cs4271_spi_probe,
- .remove = cs4271_spi_remove,
};
module_spi_driver(cs4271_spi_driver);