summaryrefslogtreecommitdiffstats
path: root/drivers/staging/speakup/speakup_decpc.c
diff options
context:
space:
mode:
authorVaishali Thakkar <vthakkar1994@gmail.com>2015-03-18 23:13:10 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-20 13:27:34 +0100
commitae89faccc6bae384f10a0efd7fec001e89b15e63 (patch)
tree8109b2d2a3fef35334fc6986a5f6b24f4ab6be34 /drivers/staging/speakup/speakup_decpc.c
parentc950a892cc302336d2a0900eba6d40ac0fb7cacb (diff)
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_decpc.c')
-rw-r--r--drivers/staging/speakup/speakup_decpc.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/staging/speakup/speakup_decpc.c b/drivers/staging/speakup/speakup_decpc.c
index 7c9c432e48d9..f7b9c8a3a1a5 100644
--- a/drivers/staging/speakup/speakup_decpc.c
+++ b/drivers/staging/speakup/speakup_decpc.c
@@ -491,18 +491,8 @@ module_param_named(start, synth_dec_pc.startup, short, S_IRUGO);
MODULE_PARM_DESC(start, "Start the synthesizer once it is loaded.");
-static int __init decpc_init(void)
-{
- return synth_add(&synth_dec_pc);
-}
-
-static void __exit decpc_exit(void)
-{
- synth_remove(&synth_dec_pc);
-}
+module_spk_synth(synth_dec_pc);
-module_init(decpc_init);
-module_exit(decpc_exit);
MODULE_AUTHOR("Kirk Reiser <kirk@braille.uwo.ca>");
MODULE_AUTHOR("David Borowski");
MODULE_DESCRIPTION("Speakup support for DECtalk PC synthesizers");