mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
ASoC: tas5086: use module_i2c_driver to simplify the code
Use the module_i2c_driver() macro to make the code smaller and a bit simpler. Signed-off-by: Wei Yongjun <[email protected]> Acked-by: Daniel Mack <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
4fa89346fb
commit
c300d6de53
1 changed files with 1 additions and 11 deletions
|
|
@ -584,17 +584,7 @@ static struct i2c_driver tas5086_i2c_driver = {
|
|||
.remove = tas5086_i2c_remove,
|
||||
};
|
||||
|
||||
static int __init tas5086_modinit(void)
|
||||
{
|
||||
return i2c_add_driver(&tas5086_i2c_driver);
|
||||
}
|
||||
module_init(tas5086_modinit);
|
||||
|
||||
static void __exit tas5086_modexit(void)
|
||||
{
|
||||
i2c_del_driver(&tas5086_i2c_driver);
|
||||
}
|
||||
module_exit(tas5086_modexit);
|
||||
module_i2c_driver(tas5086_i2c_driver);
|
||||
|
||||
MODULE_AUTHOR("Daniel Mack <[email protected]>");
|
||||
MODULE_DESCRIPTION("Texas Instruments TAS5086 ALSA SoC Codec Driver");
|
||||
|
|
|
|||
Loading…
Reference in a new issue