Skip to contentSkip to conversation

ASoC: cs42l52: Remove duplicate module exit code

PATCH In review Mark Brown 2 participants 2 messages Apr 30, 2012

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: cs42l52: Remove duplicate module exit code

In the conversion to module_init_i2c() the original open coded module exit function was left. Remove it.

---
 sound/soc/codecs/cs42l52.c |    7 -------
 1 file changed, 7 deletions(-)
sound/soc/codecs/cs42l52.c +0 -7
index e7fefbd..703060d 100644
@@ -1287,13 +1287,6 @@ static struct i2c_driver cs42l52_i2c_driver = {
 	.remove =   __devexit_p(cs42l52_i2c_remove),
 };
 
-static void __exit cs42l52_exit(void)
-{
-	i2c_del_driver(&cs42l52_i2c_driver);
-}
-
-module_exit(cs42l52_exit);
-
 module_i2c_driver(cs42l52_i2c_driver);
 
 MODULE_DESCRIPTION("ASoC CS42L52 driver");
Signature · 1 line
1.7.10
#1 lore raw
Quoted 2 lines · Mark Brown

In the conversion to module_init_i2c() the original open coded module exit function was left.

Thanks Mark,

Brian