]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
parport_pc locking fix
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 31 Jul 2007 07:37:43 +0000 (00:37 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 31 Jul 2007 22:39:37 +0000 (15:39 -0700)
commit8daedea656ef48d36d1bda3d1339da484387c710
tree3cc3d1048430815042e7336929c8ebfee6cd5a81
parentc21b37f6449a3d799c7e75e978391674ee207600
parport_pc locking fix

http://bugzilla.kernel.org/show_bug.cgi?id=8821 reports a might_sleep()
warning due to parport_pc_exit() running platform_device_unregister() while
holding ports_lock.

Just remove the locking: nobody else can access ports_list during module_exit.

Cc: "Mike Sharkey" <mike@pikeaero.com>
Cc: Tim Waugh <tim@cyberelk.net>
Cc: Stas Sergeev <stsp@aknet.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/parport/parport_pc.c