Commit 98654d3f authored by Axel Lin's avatar Axel Lin Committed by Takashi Iwai

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: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 8a3e5373
...@@ -1132,15 +1132,4 @@ static struct i2c_driver onyx_driver = { ...@@ -1132,15 +1132,4 @@ static struct i2c_driver onyx_driver = {
.id_table = onyx_i2c_id, .id_table = onyx_i2c_id,
}; };
static int __init onyx_init(void) module_i2c_driver(onyx_driver);
{
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);
...@@ -1026,15 +1026,4 @@ static struct i2c_driver tas_driver = { ...@@ -1026,15 +1026,4 @@ static struct i2c_driver tas_driver = {
.id_table = tas_i2c_id, .id_table = tas_i2c_id,
}; };
static int __init tas_init(void) module_i2c_driver(tas_driver);
{
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);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment