diff options
author | Vaishali Thakkar <vthakkar1994@gmail.com> | 2015-03-18 23:13:10 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-20 13:27:34 +0100 |
commit | ae89faccc6bae384f10a0efd7fec001e89b15e63 (patch) | |
tree | 8109b2d2a3fef35334fc6986a5f6b24f4ab6be34 /drivers/staging/speakup/speakup_dtlk.c | |
parent | c950a892cc302336d2a0900eba6d40ac0fb7cacb (diff) | |
download | linux-ae89faccc6bae384f10a0efd7fec001e89b15e63.tar.bz2 |
Staging: speakup: Use module_spk_synth
Macro module_spk_synth can be used for speakup drivers
whose init and exit paths does only module registrations.
So, here remove some boilerplate code by using
module_spk_synth.
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup/speakup_dtlk.c')
-rw-r--r-- | drivers/staging/speakup/speakup_dtlk.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/staging/speakup/speakup_dtlk.c b/drivers/staging/speakup/speakup_dtlk.c index 89592c0b9151..345efd3344b0 100644 --- a/drivers/staging/speakup/speakup_dtlk.c +++ b/drivers/staging/speakup/speakup_dtlk.c @@ -388,18 +388,8 @@ module_param_named(start, synth_dtlk.startup, short, S_IRUGO); MODULE_PARM_DESC(port, "Set the port for the synthesizer (override probing)."); MODULE_PARM_DESC(start, "Start the synthesizer once it is loaded."); -static int __init dtlk_init(void) -{ - return synth_add(&synth_dtlk); -} - -static void __exit dtlk_exit(void) -{ - synth_remove(&synth_dtlk); -} +module_spk_synth(synth_dtlk); -module_init(dtlk_init); -module_exit(dtlk_exit); MODULE_AUTHOR("Kirk Reiser <kirk@braille.uwo.ca>"); MODULE_AUTHOR("David Borowski"); MODULE_DESCRIPTION("Speakup support for DoubleTalk PC synthesizers"); |