Commit 51451b8d607374297055c4e08034b39f4be22d33

Authored by Axel Lin
Committed by Takashi Iwai
1 parent 1ea6b8f489

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>

Showing 2 changed files with 2 additions and 24 deletions Side-by-side Diff

... ... @@ -935,16 +935,5 @@
935 935 }
936 936 };
937 937  
938   -static int __init alsa_card_hal2_init(void)
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);
  938 +module_platform_driver(hal2_driver);
sound/mips/sgio2audio.c
... ... @@ -976,16 +976,5 @@
976 976 }
977 977 };
978 978  
979   -static int __init alsa_card_sgio2audio_init(void)
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)
  979 +module_platform_driver(sgio2audio_driver);