summaryrefslogtreecommitdiffstats
path: root/sound/mips/hal2.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-24 18:47:25 +0800
committerTakashi Iwai <tiwai@suse.de>2011-11-24 13:03:02 +0100
commit51451b8d607374297055c4e08034b39f4be22d33 (patch)
treec03ab7c61a6e8a45cee0fab82d13b8ecea394e4b /sound/mips/hal2.c
parent1ea6b8f48918282bdca0b32a34095504ee65bab5 (diff)
downloadop-kernel-dev-51451b8d607374297055c4e08034b39f4be22d33.zip
op-kernel-dev-51451b8d607374297055c4e08034b39f4be22d33.tar.gz
ALSA: Convert mips directory to module_platform_driver
Factor out some boilerplate code. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/mips/hal2.c')
-rw-r--r--sound/mips/hal2.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/mips/hal2.c b/sound/mips/hal2.c
index 2e6c858..5f88d1f 100644
--- a/sound/mips/hal2.c
+++ b/sound/mips/hal2.c
@@ -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);
OpenPOWER on IntegriCloud