aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/codecs/sgtl5000.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index 2e0227bda8e0..d441559dc92c 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -1571,11 +1571,7 @@ disable_clk:
1571 1571
1572static int sgtl5000_i2c_remove(struct i2c_client *client) 1572static int sgtl5000_i2c_remove(struct i2c_client *client)
1573{ 1573{
1574 struct sgtl5000_priv *sgtl5000; 1574 struct sgtl5000_priv *sgtl5000 = i2c_get_clientdata(client);
1575 sgtl5000 = devm_kzalloc(&client->dev, sizeof(struct sgtl5000_priv),
1576 GFP_KERNEL);
1577 if (!sgtl5000)
1578 return -ENOMEM;
1579 1575
1580 snd_soc_unregister_codec(&client->dev); 1576 snd_soc_unregister_codec(&client->dev);
1581 clk_disable_unprepare(sgtl5000->mclk); 1577 clk_disable_unprepare(sgtl5000->mclk);