projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34f9806
)
sound: dmasound: use module_platform_driver_probe()
author
Christoph Jaeger
<
[email protected]
>
Wed, 9 Apr 2014 07:43:53 +0000
(09:43 +0200)
committer
Takashi Iwai
<
[email protected]
>
Wed, 9 Apr 2014 08:02:21 +0000
(10:02 +0200)
Eliminate boilerplate code by using module_platform_driver_probe().
Signed-off-by: Christoph Jaeger <
[email protected]
>
Signed-off-by: Takashi Iwai <
[email protected]
>
sound/oss/dmasound/dmasound_paula.c
patch
|
blob
|
history
diff --git
a/sound/oss/dmasound/dmasound_paula.c
b/sound/oss/dmasound/dmasound_paula.c
index 87910e9921332d770e5cd07d60434dd670b891fa..c2d45a5848bc92d0450ddb04e731636235aac8a0 100644
(file)
--- 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 = {
},
};
-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");