staging: et131x: cancel_work when module gets unloaded
authorDevendra Naga <devendra.aaru@gmail.com>
Wed, 10 Apr 2013 07:04:00 +0000 (12:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Apr 2013 20:07:05 +0000 (13:07 -0700)
commitddd4bd3e54d788d069ce022c4b93b069785e775a
treeaf4c3aa1f9710527428d30e435cf77fc6f89abb4
parent9a5c59687ad8fc6a84d97fd9cb3bbf15279793ac
staging: et131x: cancel_work when module gets unloaded

The work item has been added to the queue using INIT_WORK and scheduled
in interrupt handler. when module unloads that work item has not been
removed from the queue. remove and stop its further execution when the
module unloaded

Cc: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c