diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-07 10:03:23 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-05-07 11:32:09 +0200 |
commit | ceb57d27e28a8f979cbfd6391b7da6da51484059 (patch) | |
tree | 77f30e973968a0bfcaaa3a8594a94b6f8635740a /drivers/mfd/wm8994-core.c | |
parent | cc7a727941193e3e59be2e9f6522eb78bc7ee909 (diff) | |
download | lwn-ceb57d27e28a8f979cbfd6391b7da6da51484059.tar.gz lwn-ceb57d27e28a8f979cbfd6391b7da6da51484059.zip |
mfd: Convert wm8994 to module_i2c_driver()
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/wm8994-core.c')
-rw-r--r-- | drivers/mfd/wm8994-core.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c index 60e617549edd..1e321d349777 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c @@ -733,23 +733,7 @@ static struct i2c_driver wm8994_i2c_driver = { .id_table = wm8994_i2c_id, }; -static int __init wm8994_i2c_init(void) -{ - int ret; - - ret = i2c_add_driver(&wm8994_i2c_driver); - if (ret != 0) - pr_err("Failed to register wm8994 I2C driver: %d\n", ret); - - return ret; -} -module_init(wm8994_i2c_init); - -static void __exit wm8994_i2c_exit(void) -{ - i2c_del_driver(&wm8994_i2c_driver); -} -module_exit(wm8994_i2c_exit); +module_i2c_driver(wm8994_i2c_driver); MODULE_DESCRIPTION("Core support for the WM8994 audio CODEC"); MODULE_LICENSE("GPL"); |