driver core: bus_add_driver should return an error if no bus
commit4f6e1945fecad6ac8134e9fa68b7708e55690e9e
authorGreg Kroah-Hartman <gregkh@suse.de>
Fri, 20 Apr 2007 18:29:52 +0000 (20 11:29 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 17:57:32 +0000 (27 10:57 -0700)
tree367307c1307ea8ea633bef75350b7cc2df61d91d
parent8447891fe845851738439788c74b3c811578e3f9
driver core: bus_add_driver should return an error if no bus

As pointed out by Dave Jones.

Cc: Dave Jones <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/bus.c