summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorBrian Austin <brian.austin@cirrus.com>2012-05-09 12:14:02 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-09 18:19:42 +0100
commit5edd3c27dae54cf7ac9072ff97cff1bf80745d22 (patch)
treef79ab05801b7f74d83a4a8f490cda48798e68ab0 /sound/soc
parent01476801c68166ede4b1abe66b8bf386675cb5e6 (diff)
ASoC: cs42l73: Convert to module_i2c_driver()
Signed-off-by: Brian Austin <brian.austin@cirrus.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/cs42l73.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/sound/soc/codecs/cs42l73.c b/sound/soc/codecs/cs42l73.c
index 2cc50b379a0e..2c23d05452a0 100644
--- a/sound/soc/codecs/cs42l73.c
+++ b/sound/soc/codecs/cs42l73.c
@@ -1426,25 +1426,7 @@ static struct i2c_driver cs42l73_i2c_driver = {
};
-static int __init cs42l73_modinit(void)
-{
- int ret;
- ret = i2c_add_driver(&cs42l73_i2c_driver);
- if (ret != 0) {
- pr_err("Failed to register CS42L73 I2C driver: %d\n", ret);
- return ret;
- }
- return 0;
-}
-
-module_init(cs42l73_modinit);
-
-static void __exit cs42l73_exit(void)
-{
- i2c_del_driver(&cs42l73_i2c_driver);
-}
-
-module_exit(cs42l73_exit);
+module_i2c_driver(cs42l73_i2c_driver);
MODULE_DESCRIPTION("ASoC CS42L73 driver");
MODULE_AUTHOR("Georgi Vlaev, Nucleus Systems Ltd, <joe@nucleusys.com>");