Skip to contentSkip to conversation

ASoC: Remove unused aic3x_i2c_init and aic3x_i2c_exit functions

PATCH Applied Axel Lin 4 participants 4 messages Dec 1, 2010 – Dec 2, 2010

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: Remove unused aic3x_i2c_init and aic3x_i2c_exit functions

---
 sound/soc/codecs/tlv320aic3x.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
sound/soc/codecs/tlv320aic3x.c +0 -15
index fc5abdf..8cd4cf5 100644
@@ -1545,21 +1545,6 @@ static struct i2c_driver aic3x_i2c_driver = {
 	.remove = aic3x_i2c_remove,
 	.id_table = aic3x_i2c_id,
 };
-
-static inline void aic3x_i2c_init(void)
-{
-	int ret;
-
-	ret = i2c_add_driver(&aic3x_i2c_driver);
-	if (ret)
-		printk(KERN_ERR "%s: error regsitering i2c driver, %d\n",
-		       __func__, ret);
-}
-
-static inline void aic3x_i2c_exit(void)
-{
-	i2c_del_driver(&aic3x_i2c_driver);
-}
 #endif
 
 static int __init aic3x_modinit(void)
Signature · 1 line
1.7.2
Acked-by on v1 1/1
#1 lore raw
Quoted 20 lines · On Wed, 01 Dec 2010 14:38:24 +0800 Axel Lin <[email protected]> wrote:
---
 sound/soc/codecs/tlv320aic3x.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
sound/soc/codecs/tlv320aic3x.c +0 -7
index fc5abdf..8cd4cf5 100644
@@ -1545,21 +1545,6 @@ static struct i2c_driver aic3x_i2c_driver = {
 	.remove = aic3x_i2c_remove,
 	.id_table = aic3x_i2c_id,
 };
-
-static inline void aic3x_i2c_init(void)
-{
-	int ret;
-
-	ret = i2c_add_driver(&aic3x_i2c_driver);
-	if (ret)

sound/soc/codecs/tlv320aic3x.c static struct i2c_driver aic3x_i2c_driver = { · line 1549

Quoted 10 lines
sound/soc/codecs/tlv320aic3x.c +0 -8
-		printk(KERN_ERR "%s: error regsitering i2c driver, %d\n",
-		       __func__, ret);
-}
-
-static inline void aic3x_i2c_exit(void)
-{
-	i2c_del_driver(&aic3x_i2c_driver);
-}
 #endif
 

True, these are unused nowadays.

#3 lore raw
In reply to Axel Lin
Quoted 5 lines · Axel Lin
---
 sound/soc/codecs/tlv320aic3x.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)

Applied.

Thanks

Liam

Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk