From: Kay Sievers Date: Thu, 28 May 2009 21:24:07 +0000 (-0700) Subject: Driver Core: do not oops when driver_unregister() is called for unregistered drivers X-Git-Tag: v2.6.30-rc8~19^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c8563d773c0e9f0ac2a552e84806decd98ce732;p=pandora-kernel.git Driver Core: do not oops when driver_unregister() is called for unregistered drivers We also fix a problem with cleaning up properly when initializing drivers and devices, so checks like this will work successfully. Portions of the patch by Linus and Greg and Ingo. Reported-by: Ozan Çağlayan Signed-off-by: Kay Sievers Cc: Linus Torvalds Cc: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed