diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-27 15:23:51 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-01-27 15:18:28 +0100 |
commit | 98654d3fa2e6983378e3510131c5c45be97c4906 (patch) | |
tree | 18bd5a8c208de9ee39b09fa7b8652c51cb96c934 /sound/aoa/codecs/onyx.c | |
parent | 8a3e53732c5695669bfb9e23ae7dfd8504a37256 (diff) | |
download | blackbird-op-linux-98654d3fa2e6983378e3510131c5c45be97c4906.tar.gz blackbird-op-linux-98654d3fa2e6983378e3510131c5c45be97c4906.zip |
ALSA: aoa: Convert onyx and tas codec drivers to module_i2c_driver
This patch converts onyx and tas codec drivers to use the module_i2c_driver()
macro which makes the code smaller and a bit simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/aoa/codecs/onyx.c')
-rw-r--r-- | sound/aoa/codecs/onyx.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/aoa/codecs/onyx.c b/sound/aoa/codecs/onyx.c index 762af68c8996..270790d384e2 100644 --- a/sound/aoa/codecs/onyx.c +++ b/sound/aoa/codecs/onyx.c @@ -1132,15 +1132,4 @@ static struct i2c_driver onyx_driver = { .id_table = onyx_i2c_id, }; -static int __init onyx_init(void) -{ - return i2c_add_driver(&onyx_driver); -} - -static void __exit onyx_exit(void) -{ - i2c_del_driver(&onyx_driver); -} - -module_init(onyx_init); -module_exit(onyx_exit); +module_i2c_driver(onyx_driver); |