Commit 51451b8d authored by Axel Lin's avatar Axel Lin Committed by Takashi Iwai

ALSA: Convert mips directory to module_platform_driver

Factor out some boilerplate code.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 1ea6b8f4
......@@ -935,15 +935,4 @@ static struct platform_driver hal2_driver = {
}
};
static int __init alsa_card_hal2_init(void)
{
return platform_driver_register(&hal2_driver);
}
static void __exit alsa_card_hal2_exit(void)
{
platform_driver_unregister(&hal2_driver);
}
module_init(alsa_card_hal2_init);
module_exit(alsa_card_hal2_exit);
module_platform_driver(hal2_driver);
......@@ -976,15 +976,4 @@ static struct platform_driver sgio2audio_driver = {
}
};
static int __init alsa_card_sgio2audio_init(void)
{
return platform_driver_register(&sgio2audio_driver);
}
static void __exit alsa_card_sgio2audio_exit(void)
{
platform_driver_unregister(&sgio2audio_driver);
}
module_init(alsa_card_sgio2audio_init)
module_exit(alsa_card_sgio2audio_exit)
module_platform_driver(sgio2audio_driver);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment