aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/adau1977-i2c.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2018-01-29 04:11:29 +0000
committerMark Brown <broonie@kernel.org>2018-02-12 09:51:02 +0000
commitf305fe81ab8f9e21388d416ebe03a901273ad0f2 (patch)
tree4ac772fba90255f75a3ec719e52b2143298e36e8 /sound/soc/codecs/adau1977-i2c.c
parentLinux 4.16-rc1 (diff)
downloadlinux-dev-f305fe81ab8f9e21388d416ebe03a901273ad0f2.tar.xz
linux-dev-f305fe81ab8f9e21388d416ebe03a901273ad0f2.zip
ASoC: adau1977: 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 = 1 -> .idle_bias_on = 0 .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/adau1977-i2c.c')
-rw-r--r--sound/soc/codecs/adau1977-i2c.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sound/soc/codecs/adau1977-i2c.c b/sound/soc/codecs/adau1977-i2c.c
index 21e7394a972a..e7fe1ee5cdeb 100644
--- a/sound/soc/codecs/adau1977-i2c.c
+++ b/sound/soc/codecs/adau1977-i2c.c
@@ -29,12 +29,6 @@ static int adau1977_i2c_probe(struct i2c_client *client,
id->driver_data, NULL);
}
-static int adau1977_i2c_remove(struct i2c_client *client)
-{
- snd_soc_unregister_codec(&client->dev);
- return 0;
-}
-
static const struct i2c_device_id adau1977_i2c_ids[] = {
{ "adau1977", ADAU1977 },
{ "adau1978", ADAU1978 },
@@ -48,7 +42,6 @@ static struct i2c_driver adau1977_i2c_driver = {
.name = "adau1977",
},
.probe = adau1977_i2c_probe,
- .remove = adau1977_i2c_remove,
.id_table = adau1977_i2c_ids,
};
module_i2c_driver(adau1977_i2c_driver);