diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-24 05:47:25 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-11-24 07:03:02 -0500 |
commit | 51451b8d607374297055c4e08034b39f4be22d33 (patch) | |
tree | c03ab7c61a6e8a45cee0fab82d13b8ecea394e4b /sound | |
parent | 1ea6b8f48918282bdca0b32a34095504ee65bab5 (diff) |
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')
-rw-r--r-- | sound/mips/hal2.c | 13 | ||||
-rw-r--r-- | sound/mips/sgio2audio.c | 13 |
2 files changed, 2 insertions, 24 deletions
diff --git a/sound/mips/hal2.c b/sound/mips/hal2.c index 2e6c85894e0b..5f88d1f09ffe 100644 --- a/sound/mips/hal2.c +++ b/sound/mips/hal2.c | |||
@@ -935,15 +935,4 @@ static struct platform_driver hal2_driver = { | |||
935 | } | 935 | } |
936 | }; | 936 | }; |
937 | 937 | ||
938 | static int __init alsa_card_hal2_init(void) | 938 | module_platform_driver(hal2_driver); |
939 | { | ||
940 | return platform_driver_register(&hal2_driver); | ||
941 | } | ||
942 | |||
943 | static void __exit alsa_card_hal2_exit(void) | ||
944 | { | ||
945 | platform_driver_unregister(&hal2_driver); | ||
946 | } | ||
947 | |||
948 | module_init(alsa_card_hal2_init); | ||
949 | module_exit(alsa_card_hal2_exit); | ||
diff --git a/sound/mips/sgio2audio.c b/sound/mips/sgio2audio.c index 69425d4c91fd..ceaa593ea4ef 100644 --- a/sound/mips/sgio2audio.c +++ b/sound/mips/sgio2audio.c | |||
@@ -976,15 +976,4 @@ static struct platform_driver sgio2audio_driver = { | |||
976 | } | 976 | } |
977 | }; | 977 | }; |
978 | 978 | ||
979 | static int __init alsa_card_sgio2audio_init(void) | 979 | module_platform_driver(sgio2audio_driver); |
980 | { | ||
981 | return platform_driver_register(&sgio2audio_driver); | ||
982 | } | ||
983 | |||
984 | static void __exit alsa_card_sgio2audio_exit(void) | ||
985 | { | ||
986 | platform_driver_unregister(&sgio2audio_driver); | ||
987 | } | ||
988 | |||
989 | module_init(alsa_card_sgio2audio_init) | ||
990 | module_exit(alsa_card_sgio2audio_exit) | ||