mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 08:20:05 +01:00
Revert "linux: Fix platform device PCI detection for complex bus topologies"
This reverts commit 5c96eb5f44.
https://gitlab.freedesktop.org/xorg/xserver/-/issues/1068
This commit is contained in:
parent
4b6fce5975
commit
39cb95e959
1 changed files with 3 additions and 3 deletions
|
|
@ -470,7 +470,7 @@ config_udev_odev_setup_attribs(struct udev_device *udev_device, const char *path
|
|||
config_odev_probe_proc_ptr probe_callback)
|
||||
{
|
||||
struct OdevAttributes *attribs = config_odev_allocate_attributes();
|
||||
const char *value, *str;
|
||||
const char *value;
|
||||
|
||||
attribs->path = XNFstrdup(path);
|
||||
attribs->syspath = XNFstrdup(syspath);
|
||||
|
|
@ -478,8 +478,8 @@ config_udev_odev_setup_attribs(struct udev_device *udev_device, const char *path
|
|||
attribs->minor = minor;
|
||||
|
||||
value = udev_device_get_property_value(udev_device, "ID_PATH");
|
||||
if (value && (str = strstr(value, "pci-"))) {
|
||||
attribs->busid = XNFstrdup(str);
|
||||
if (value && !strncmp(value, "pci-", 4)) {
|
||||
attribs->busid = XNFstrdup(value);
|
||||
attribs->busid[3] = ':';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue