]> git.baikalelectronics.ru Git - kernel.git/commit
wl12xx: Cleanup PLT mode when module is removed
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>
Fri, 14 Jan 2011 11:48:46 +0000 (12:48 +0100)
committerLuciano Coelho <coelho@ti.com>
Mon, 24 Jan 2011 20:16:09 +0000 (22:16 +0200)
commitfa58677a717c7fd72fc1997d1ab7207eee726aac
tree15bc5b66e5f6d870d1c9a0b724e362ea39eb84ea
parent31f70bc604f21b9e9faaba6be6ea991c66750c9b
wl12xx: Cleanup PLT mode when module is removed

PLT mode start/stop is controlled from userspace. When removing module, the
PLT mode state is however not checked, and not cleared. There is the possibility
of some unwanted state to left linger and there is even the possiblity of a
kernel crash if for instance IRQ work is running when the module is removed.

Fix this by stopping PLT mode on module removal, if still running.

Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c