Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107048941
D45906.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
689 B
Referenced Files
None
Subscribers
None
D45906.diff
View Options
diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c
--- a/sys/compat/linuxkpi/common/src/linux_pci.c
+++ b/sys/compat/linuxkpi/common/src/linux_pci.c
@@ -976,10 +976,10 @@
{
devclass_t dc;
- dc = devclass_find("pci");
+ pdrv->isdrm = strcmp(pdrv->name, "drmn") == 0;
+ dc = pdrv->isdrm ? devclass_create("vgapci") : devclass_find("pci");
if (dc == NULL)
return (-ENXIO);
- pdrv->isdrm = false;
return (_linux_pci_register_driver(pdrv, dc));
}
@@ -1166,7 +1166,7 @@
{
devclass_t bus;
- bus = devclass_find("pci");
+ bus = devclass_find(pdrv->isdrm ? "vgapci" : "pci");
spin_lock(&pci_lock);
list_del(&pdrv->node);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 10:33 AM (13 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15741816
Default Alt Text
D45906.diff (689 B)
Attached To
Mode
D45906: LinuxKPI: Automatically enable drm support for devices named "drmn"
Attached
Detach File
Event Timeline
Log In to Comment