Skip to contentSkip to conversation

ASoC: sgtl5000: Convert to module_i2c_driver()

PATCH New Mark Brown 1 participant 1 message Apr 3, 2012

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: sgtl5000: Convert to module_i2c_driver()

---
 sound/soc/codecs/sgtl5000.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)
sound/soc/codecs/sgtl5000.c +1 -11
index 159e3a8..6a7347f 100644
@@ -1451,17 +1451,7 @@ static struct i2c_driver sgtl5000_i2c_driver = {
 	.id_table = sgtl5000_id,
 };
 
-static int __init sgtl5000_modinit(void)
-{
-	return i2c_add_driver(&sgtl5000_i2c_driver);
-}
-module_init(sgtl5000_modinit);
-
-static void __exit sgtl5000_exit(void)
-{
-	i2c_del_driver(&sgtl5000_i2c_driver);
-}
-module_exit(sgtl5000_exit);
+module_i2c_driver(sgtl5000_i2c_driver);
 
 MODULE_DESCRIPTION("Freescale SGTL5000 ALSA SoC Codec Driver");
 MODULE_AUTHOR("Zeng Zhaoming <[email protected]>");
Signature · 1 line
1.7.9.1