diff options
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index 658eae5dacda..9ea12d9b48a6 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -43,7 +43,8 @@ int (*platform_notify_remove)(struct device * dev) = NULL; | |||
43 | const char *dev_driver_string(struct device *dev) | 43 | const char *dev_driver_string(struct device *dev) |
44 | { | 44 | { |
45 | return dev->driver ? dev->driver->name : | 45 | return dev->driver ? dev->driver->name : |
46 | (dev->bus ? dev->bus->name : ""); | 46 | (dev->bus ? dev->bus->name : |
47 | (dev->class ? dev->class->name : "")); | ||
47 | } | 48 | } |
48 | EXPORT_SYMBOL(dev_driver_string); | 49 | EXPORT_SYMBOL(dev_driver_string); |
49 | 50 | ||