staging/lirc_parallel: fix panic on rmmod
authorDave Jones <davej@redhat.com>
Mon, 11 Jul 2011 18:39:20 +0000 (14:39 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 Jul 2011 20:22:52 +0000 (13:22 -0700)
commit7cf131cb240fb0959f3b56155781f4d4de4608d1
treef4bd399dea525fb15cfd171b6bef22e9ee50b813
parent38f71aa905c20ca458bb21c818d41579d03fdc28
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>
drivers/staging/lirc/lirc_parallel.c