Skip to contentSkip to conversation

ASoC: tlv320aic31xx: Don't call kfree for memory allocated by devm_kzalloc

PATCH Superseded Axel Lin 1 participant 1 message Mar 16, 2014

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: tlv320aic31xx: Don't call kfree for memory allocated by devm_kzalloc

---
 sound/soc/codecs/tlv320aic31xx.c | 9 ---------
 1 file changed, 9 deletions(-)
sound/soc/codecs/tlv320aic31xx.c +0 -9
index d3517a9..1953184 100644
@@ -1248,14 +1248,6 @@ static int aic31xx_i2c_probe(struct i2c_client *i2c,
 	return ret;
 }
 
-static int aic31xx_i2c_remove(struct i2c_client *i2c)
-{
-	struct aic31xx_priv *aic31xx = dev_get_drvdata(&i2c->dev);
-
-	kfree(aic31xx);
-	return 0;
-}
-
 static const struct i2c_device_id aic31xx_i2c_id[] = {
 	{ "tlv320aic310x", AIC3100 },
 	{ "tlv320aic311x", AIC3110 },
@@ -1274,7 +1266,6 @@ static struct i2c_driver aic31xx_i2c_driver = {
 		.of_match_table = of_match_ptr(tlv320aic31xx_of_match),
 	},
 	.probe		= aic31xx_i2c_probe,
-	.remove		= (aic31xx_i2c_remove),
 	.id_table	= aic31xx_i2c_id,
 };
 
Signature · 1 line
1.8.1.2