Skip to content

Commit

Permalink
sound: dmasound: use module_platform_driver_probe()
Browse files Browse the repository at this point in the history
Eliminate boilerplate code by using module_platform_driver_probe().

Signed-off-by: Christoph Jaeger <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Christoph Jaeger authored and tiwai committed Apr 9, 2014
1 parent 34f9806 commit 292ab81
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions sound/oss/dmasound/dmasound_paula.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,19 +733,7 @@ static struct platform_driver amiga_audio_driver = {
},
};

static int __init amiga_audio_init(void)
{
return platform_driver_probe(&amiga_audio_driver, amiga_audio_probe);
}

module_init(amiga_audio_init);

static void __exit amiga_audio_exit(void)
{
platform_driver_unregister(&amiga_audio_driver);
}

module_exit(amiga_audio_exit);
module_platform_driver_probe(amiga_audio_driver, amiga_audio_probe);

MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:amiga-audio");

0 comments on commit 292ab81

Please sign in to comment.