Skip to content

Commit

Permalink
ALSA: aoa: Convert onyx and tas codec drivers to module_i2c_driver
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
AxelLin authored and tiwai committed Jan 27, 2012
1 parent 8a3e537 commit 98654d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
13 changes: 1 addition & 12 deletions sound/aoa/codecs/onyx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
13 changes: 1 addition & 12 deletions sound/aoa/codecs/tas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 98654d3

Please sign in to comment.