diff options
-rw-r--r-- | drivers/base/bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c index 1a5a350eca15..1d76e2349654 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c | |||
@@ -603,7 +603,7 @@ int bus_add_driver(struct device_driver *drv) | |||
603 | int error = 0; | 603 | int error = 0; |
604 | 604 | ||
605 | if (!bus) | 605 | if (!bus) |
606 | return 0; | 606 | return -EINVAL; |
607 | 607 | ||
608 | pr_debug("bus %s: add driver %s\n", bus->name, drv->name); | 608 | pr_debug("bus %s: add driver %s\n", bus->name, drv->name); |
609 | error = kobject_set_name(&drv->kobj, "%s", drv->name); | 609 | error = kobject_set_name(&drv->kobj, "%s", drv->name); |