diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index b9bb3995db84..e6738bcbe5a9 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -678,8 +678,7 @@ static int device_add_class_symlinks(struct device *dev) | |||
678 | if (error) | 678 | if (error) |
679 | goto out_subsys; | 679 | goto out_subsys; |
680 | } | 680 | } |
681 | /* only bus-device parents get a "device"-link */ | 681 | if (dev->parent) { |
682 | if (dev->parent && dev->parent->bus) { | ||
683 | error = sysfs_create_link(&dev->kobj, &dev->parent->kobj, | 682 | error = sysfs_create_link(&dev->kobj, &dev->parent->kobj, |
684 | "device"); | 683 | "device"); |
685 | if (error) | 684 | if (error) |