Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157565557
D55175.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
638 B
Referenced Files
None
Subscribers
None
D55175.diff
View Options
Index: sys/compat/linuxkpi/common/include/linux/device.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/device.h
+++ sys/compat/linuxkpi/common/include/linux/device.h
@@ -434,7 +434,10 @@
if (dev->devt == 0)
dev->devt = makedev(0, device_get_unit(dev->bsddev));
}
- kobject_add(&dev->kobj, &dev->class->kobj, dev_name(dev));
+ if (dev->parent != NULL)
+ kobject_add(&dev->kobj, &dev->parent->kobj, dev_name(dev));
+ else
+ kobject_add(&dev->kobj, &dev->class->kobj, dev_name(dev));
if (dev->groups)
return (sysfs_create_groups(&dev->kobj, dev->groups));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 23, 9:48 PM (16 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33455235
Default Alt Text
D55175.diff (638 B)
Attached To
Mode
D55175: linuxkpi: Add device under parent, not under class
Attached
Detach File
Event Timeline
Log In to Comment