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)
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>

No differences found