From 98654d3fa2e6983378e3510131c5c45be97c4906 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 27 Jan 2012 15:23:51 +0800 Subject: 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 Signed-off-by: Takashi Iwai --- sound/aoa/codecs/tas.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'sound/aoa/codecs/tas.c') diff --git a/sound/aoa/codecs/tas.c b/sound/aoa/codecs/tas.c index fd2188c3df2..8e63d1f35ce 100644 --- a/sound/aoa/codecs/tas.c +++ b/sound/aoa/codecs/tas.c @@ -1026,15 +1026,4 @@ static struct i2c_driver tas_driver = { .id_table = tas_i2c_id, }; -static int __init tas_init(void) -{ - return i2c_add_driver(&tas_driver); -} - -static void __exit tas_exit(void) -{ - i2c_del_driver(&tas_driver); -} - -module_init(tas_init); -module_exit(tas_exit); +module_i2c_driver(tas_driver); -- cgit v1.2.3-70-g09d2