MMC: OMAP: Use tasklet instead of workqueue for cover switch notification
authorJarkko Lavinen <jarkko.lavinen@nokia.com>
Wed, 26 Mar 2008 20:09:42 +0000 (16:09 -0400)
committerPierre Ossman <drzeus@drzeus.cx>
Fri, 18 Apr 2008 18:05:30 +0000 (20:05 +0200)
commit7584d276d47a55afaeb614ed16cf306cbe2d6117
tree85f43e35e299312f45a9be8206f0075a33a28045
parent8348f0029d85828671e3a1d11db41fe53afbdc0d
MMC: OMAP: Use tasklet instead of workqueue for cover switch notification

The cover waitqueue is occasionally scheduled twice from timer
and the interrupt and oops follows. It would have been possible
to fix this problem with spinlocks but using tasklet was a dropin
solution with no need for locking.

This path also adds some cleanups.

Signed-off-by: Jarkko Lavinen <jarkko.lavinen@nokia.com>
Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/omap.c