mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-01 14:52:32 +00:00
ASoC: rt5677: Convert to use module_i2c_driver
Signed-off-by: Axel Lin <axel.lin@ingics.com> Tested-by: Oder Chiou <oder_chiou@realtek.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
7171511eae
commit
c8cfbec882
@ -3480,18 +3480,7 @@ static struct i2c_driver rt5677_i2c_driver = {
|
||||
.remove = rt5677_i2c_remove,
|
||||
.id_table = rt5677_i2c_id,
|
||||
};
|
||||
|
||||
static int __init rt5677_modinit(void)
|
||||
{
|
||||
return i2c_add_driver(&rt5677_i2c_driver);
|
||||
}
|
||||
module_init(rt5677_modinit);
|
||||
|
||||
static void __exit rt5677_modexit(void)
|
||||
{
|
||||
i2c_del_driver(&rt5677_i2c_driver);
|
||||
}
|
||||
module_exit(rt5677_modexit);
|
||||
module_i2c_driver(rt5677_i2c_driver);
|
||||
|
||||
MODULE_DESCRIPTION("ASoC RT5677 driver");
|
||||
MODULE_AUTHOR("Oder Chiou <oder_chiou@realtek.com>");
|
||||
|
Loading…
Reference in New Issue
Block a user