ASoC: rt5631: Convert to module_i2c_driver()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 May 2012 14:35:57 +0000 (15:35 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 9 May 2012 11:54:06 +0000 (12:54 +0100)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/rt5631.c

index 95147e451982b3506b4ae4d2d2cc66b131b46866..a64f2a75c365067a3597696cf92bc33acbdf808a 100644 (file)
@@ -1751,17 +1751,7 @@ static struct i2c_driver rt5631_i2c_driver = {
        .id_table = rt5631_i2c_id,
 };
 
-static int __init rt5631_modinit(void)
-{
-       return i2c_add_driver(&rt5631_i2c_driver);
-}
-module_init(rt5631_modinit);
-
-static void __exit rt5631_modexit(void)
-{
-       i2c_del_driver(&rt5631_i2c_driver);
-}
-module_exit(rt5631_modexit);
+module_i2c_driver(rt5631_i2c_driver);
 
 MODULE_DESCRIPTION("ASoC RT5631 driver");
 MODULE_AUTHOR("flove <flove@realtek.com>");