diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-27 02:23:51 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-01-27 09:18:28 -0500 |
commit | 98654d3fa2e6983378e3510131c5c45be97c4906 (patch) | |
tree | 18bd5a8c208de9ee39b09fa7b8652c51cb96c934 /sound | |
parent | 8a3e53732c5695669bfb9e23ae7dfd8504a37256 (diff) |
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')
-rw-r--r-- | sound/aoa/codecs/onyx.c | 13 | ||||
-rw-r--r-- | sound/aoa/codecs/tas.c | 13 |
2 files changed, 2 insertions, 24 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 = { | |||
1132 | .id_table = onyx_i2c_id, | 1132 | .id_table = onyx_i2c_id, |
1133 | }; | 1133 | }; |
1134 | 1134 | ||
1135 | static int __init onyx_init(void) | 1135 | module_i2c_driver(onyx_driver); |
1136 | { | ||
1137 | return i2c_add_driver(&onyx_driver); | ||
1138 | } | ||
1139 | |||
1140 | static void __exit onyx_exit(void) | ||
1141 | { | ||
1142 | i2c_del_driver(&onyx_driver); | ||
1143 | } | ||
1144 | |||
1145 | module_init(onyx_init); | ||
1146 | module_exit(onyx_exit); | ||
diff --git a/sound/aoa/codecs/tas.c b/sound/aoa/codecs/tas.c index fd2188c3df2b..8e63d1f35ce1 100644 --- a/sound/aoa/codecs/tas.c +++ b/sound/aoa/codecs/tas.c | |||
@@ -1026,15 +1026,4 @@ static struct i2c_driver tas_driver = { | |||
1026 | .id_table = tas_i2c_id, | 1026 | .id_table = tas_i2c_id, |
1027 | }; | 1027 | }; |
1028 | 1028 | ||
1029 | static int __init tas_init(void) | 1029 | module_i2c_driver(tas_driver); |
1030 | { | ||
1031 | return i2c_add_driver(&tas_driver); | ||
1032 | } | ||
1033 | |||
1034 | static void __exit tas_exit(void) | ||
1035 | { | ||
1036 | i2c_del_driver(&tas_driver); | ||
1037 | } | ||
1038 | |||
1039 | module_init(tas_init); | ||
1040 | module_exit(tas_exit); | ||