diff options
| author | Christoph Jaeger <christophjaeger@linux.com> | 2014-04-09 03:43:53 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2014-04-09 04:02:21 -0400 |
| commit | 292ab81df0e9e1444fd027e1f45336eb0ce4e23d (patch) | |
| tree | 151d2a828d0ce877b8ac3b5c222d38bc719c85fb | |
| parent | 34f980630f6c135b6735f9fb16079aeb4c21fc18 (diff) | |
sound: dmasound: use module_platform_driver_probe()
Eliminate boilerplate code by using module_platform_driver_probe().
Signed-off-by: Christoph Jaeger <christophjaeger@linux.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
| -rw-r--r-- | sound/oss/dmasound/dmasound_paula.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sound/oss/dmasound/dmasound_paula.c b/sound/oss/dmasound/dmasound_paula.c index 87910e992133..c2d45a5848bc 100644 --- a/sound/oss/dmasound/dmasound_paula.c +++ b/sound/oss/dmasound/dmasound_paula.c | |||
| @@ -733,19 +733,7 @@ static struct platform_driver amiga_audio_driver = { | |||
| 733 | }, | 733 | }, |
| 734 | }; | 734 | }; |
| 735 | 735 | ||
| 736 | static int __init amiga_audio_init(void) | 736 | module_platform_driver_probe(amiga_audio_driver, amiga_audio_probe); |
| 737 | { | ||
| 738 | return platform_driver_probe(&amiga_audio_driver, amiga_audio_probe); | ||
| 739 | } | ||
| 740 | |||
| 741 | module_init(amiga_audio_init); | ||
| 742 | |||
| 743 | static void __exit amiga_audio_exit(void) | ||
| 744 | { | ||
| 745 | platform_driver_unregister(&amiga_audio_driver); | ||
| 746 | } | ||
| 747 | |||
| 748 | module_exit(amiga_audio_exit); | ||
| 749 | 737 | ||
| 750 | MODULE_LICENSE("GPL"); | 738 | MODULE_LICENSE("GPL"); |
| 751 | MODULE_ALIAS("platform:amiga-audio"); | 739 | MODULE_ALIAS("platform:amiga-audio"); |
