]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: do not wait unnecessarily in driver_unregister()
authorLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 1 Apr 2007 17:54:13 +0000 (10:54 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 1 Apr 2007 17:54:13 +0000 (10:54 -0700)
commite6b34d659ee4577bcb8cd732a38551c8df60dbe8
treef0ded5f4a61f4db25794d097725e1d37d872c80c
parent2554d193e02d80c8d5b520de51ae17ae8fd1d6ae
driver core: do not wait unnecessarily in driver_unregister()

Ingo reported that built-in drivers suffered bootup hangs with certain
driver unregistry sequences, due to sysfs breakage.

Do the minimal fix for v2.6.21: only wait if the driver is a module.

Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/base/driver.c