diff options
author | Okash Khawaja <okash.khawaja@gmail.com> | 2017-03-14 13:41:54 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-16 11:12:02 +0900 |
commit | a50ef3165489c74c7d7c9f7559d9bbb198dca154 (patch) | |
tree | 2048ec8e22823d779d1ce57540b144ff45ae687c /drivers/staging/speakup/synth.c | |
parent | 1e441594e509c35a222e397d224de17cee103740 (diff) | |
download | linux-stable-a50ef3165489c74c7d7c9f7559d9bbb198dca154.tar.gz linux-stable-a50ef3165489c74c7d7c9f7559d9bbb198dca154.tar.bz2 linux-stable-a50ef3165489c74c7d7c9f7559d9bbb198dca154.zip |
staging: speakup: move spk_stop_serial_interrupt into synth-specific release function
This moves call to spk_stop_serial_interrupt() function out of synth_release()
and into release() method of specific spk_synth instances. This is because
the spk_stop_serial_interrupt() call is specific to current serial i/o
implementation. Moving it into each synth's release() method gives the
decision of calling spk_stop_serial_interrupt() to that synth.
Signed-off-by: Okash Khawaja <okash.khawaja@gmail.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup/synth.c')
-rw-r--r-- | drivers/staging/speakup/synth.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/speakup/synth.c b/drivers/staging/speakup/synth.c index 72d4f027e40a..989681dcb710 100644 --- a/drivers/staging/speakup/synth.c +++ b/drivers/staging/speakup/synth.c @@ -462,7 +462,6 @@ void synth_release(void) sysfs_remove_group(speakup_kobj, &synth->attributes); for (var = synth->vars; var->var_id != MAXVARS; var++) speakup_unregister_var(var->var_id); - spk_stop_serial_interrupt(); synth->release(); synth = NULL; } |