diff options
author | Dave Jones <davej@redhat.com> | 2011-07-11 14:39:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-18 13:22:52 -0700 |
commit | 7cf131cb240fb0959f3b56155781f4d4de4608d1 (patch) | |
tree | f4bd399dea525fb15cfd171b6bef22e9ee50b813 | |
parent | 38f71aa905c20ca458bb21c818d41579d03fdc28 (diff) | |
download | op-kernel-dev-7cf131cb240fb0959f3b56155781f4d4de4608d1.zip op-kernel-dev-7cf131cb240fb0959f3b56155781f4d4de4608d1.tar.gz |
staging/lirc_parallel: fix panic on rmmod
lirc_parallel seems to leave a bunch of stuff around after rmmod.
Without the patch below modprobe ; rmmod ; modprobe will cause a panic.
There are still some remaining problems, (double registration of sysfs files)
but this patch is at least a start to survive the panic.
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/lirc/lirc_parallel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/lirc/lirc_parallel.c b/drivers/staging/lirc/lirc_parallel.c index 50724c4..70db1d1 100644 --- a/drivers/staging/lirc/lirc_parallel.c +++ b/drivers/staging/lirc/lirc_parallel.c @@ -730,6 +730,9 @@ static void __exit lirc_parallel_exit(void) { parport_unregister_device(ppdevice); lirc_unregister_driver(driver.minor); + + platform_device_unregister(lirc_parallel_dev); + platform_driver_unregister(&lirc_parallel_driver); } module_init(lirc_parallel_init); |