[patch} turn off pcspeaker when unloading
Hi,
this patch turn off the pc speaker when you unload it : with whe current version if you unload it when the speacker beep, the beep never stop.
Signed-off-by Matthieu Castet <[email protected]>
drivers/input/misc/pcspkr.c +2 -0
@@ -89,6 +89,8 @@ static void __exit pcspkr_exit(void) {input_unregister_device (&pcspkr_dev); +/* turn off the speaker */ +pcspkr_event (NULL ,EV_SND ,SND_BELL ,0 ); }module_init (pcspkr_init);