ASoC: psc-ac97: Convert to module_platform_driver()
Acked-by: Manuel Lauss <manuel.lauss@gmail.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
Родитель
a16a6c68e8
Коммит
2105d63e09
|
@ -497,19 +497,7 @@ static struct platform_driver au1xpsc_ac97_driver = {
|
||||||
.remove = au1xpsc_ac97_drvremove,
|
.remove = au1xpsc_ac97_drvremove,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init au1xpsc_ac97_load(void)
|
module_platform_driver(au1xpsc_ac97_driver);
|
||||||
{
|
|
||||||
au1xpsc_ac97_workdata = NULL;
|
|
||||||
return platform_driver_register(&au1xpsc_ac97_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit au1xpsc_ac97_unload(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&au1xpsc_ac97_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(au1xpsc_ac97_load);
|
|
||||||
module_exit(au1xpsc_ac97_unload);
|
|
||||||
|
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
MODULE_DESCRIPTION("Au12x0/Au1550 PSC AC97 ALSA ASoC audio driver");
|
MODULE_DESCRIPTION("Au12x0/Au1550 PSC AC97 ALSA ASoC audio driver");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче