Skip to content

Commit

Permalink
ALSA: Convert mips directory to module_platform_driver
Browse files Browse the repository at this point in the history
Factor out some boilerplate code.

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
AxelLin authored and tiwai committed Nov 24, 2011
1 parent 1ea6b8f commit 51451b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
13 changes: 1 addition & 12 deletions sound/mips/hal2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
13 changes: 1 addition & 12 deletions sound/mips/sgio2audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 51451b8

Please sign in to comment.