mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
driver core: revert "device" link creation check
driver core: revert "device" link creation check
Commit 2ee97caf0a introduced an extra
check on when to create the "device" symlink. Unfortunately, this
breaks input, so let's revert to the old behaviour.
Signed-off-by: Cornelia Huck <[email protected]>
Acked-by: Kay Sievers <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
a2765e81d8
commit
27907689ee
1 changed files with 1 additions and 2 deletions
|
|
@ -678,8 +678,7 @@ static int device_add_class_symlinks(struct device *dev)
|
|||
if (error)
|
||||
goto out_subsys;
|
||||
}
|
||||
/* only bus-device parents get a "device"-link */
|
||||
if (dev->parent && dev->parent->bus) {
|
||||
if (dev->parent) {
|
||||
error = sysfs_create_link(&dev->kobj, &dev->parent->kobj,
|
||||
"device");
|
||||
if (error)
|
||||
|
|
|
|||
Loading…
Reference in a new issue