mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 10:56:40 +00:00
ASoC: sgtl5000: Convert to module_i2c_driver()
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
cd041f642c
commit
67d45090e6
@ -1450,17 +1450,7 @@ static struct i2c_driver sgtl5000_i2c_driver = {
|
|||||||
.id_table = sgtl5000_id,
|
.id_table = sgtl5000_id,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init sgtl5000_modinit(void)
|
module_i2c_driver(sgtl5000_i2c_driver);
|
||||||
{
|
|
||||||
return i2c_add_driver(&sgtl5000_i2c_driver);
|
|
||||||
}
|
|
||||||
module_init(sgtl5000_modinit);
|
|
||||||
|
|
||||||
static void __exit sgtl5000_exit(void)
|
|
||||||
{
|
|
||||||
i2c_del_driver(&sgtl5000_i2c_driver);
|
|
||||||
}
|
|
||||||
module_exit(sgtl5000_exit);
|
|
||||||
|
|
||||||
MODULE_DESCRIPTION("Freescale SGTL5000 ALSA SoC Codec Driver");
|
MODULE_DESCRIPTION("Freescale SGTL5000 ALSA SoC Codec Driver");
|
||||||
MODULE_AUTHOR("Zeng Zhaoming <zengzm.kernel@gmail.com>");
|
MODULE_AUTHOR("Zeng Zhaoming <zengzm.kernel@gmail.com>");
|
||||||
|
Loading…
Reference in New Issue
Block a user