Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
xserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
893
Issues
893
List
Boards
Labels
Service Desk
Milestones
Merge Requests
86
Merge Requests
86
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xorg
xserver
Commits
4b6fce59
Commit
4b6fce59
authored
Sep 08, 2020
by
Olivier Fourdan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "linux: Fix platform device probe for DT-based PCI"
This reverts commit
249a12c5
.
#1068
parent
afb77415
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
26 deletions
+1
-26
config/udev.c
config/udev.c
+1
-26
No files found.
config/udev.c
View file @
4b6fce59
...
...
@@ -464,31 +464,6 @@ config_udev_fini(void)
#ifdef CONFIG_UDEV_KMS
/* Find the last occurrence of the needle in haystack */
static
char
*
strrstr
(
const
char
*
haystack
,
const
char
*
needle
)
{
char
*
prev
,
*
last
,
*
tmp
;
prev
=
strstr
(
haystack
,
needle
);
if
(
!
prev
)
return
NULL
;
last
=
prev
;
tmp
=
prev
+
1
;
while
(
tmp
)
{
last
=
strstr
(
tmp
,
needle
);
if
(
!
last
)
return
prev
;
else
{
prev
=
last
;
tmp
=
prev
+
1
;
}
}
return
last
;
}
static
void
config_udev_odev_setup_attribs
(
struct
udev_device
*
udev_device
,
const
char
*
path
,
const
char
*
syspath
,
int
major
,
int
minor
,
...
...
@@ -503,7 +478,7 @@ 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
=
str
r
str
(
value
,
"pci-"
)))
{
if
(
value
&&
(
str
=
strstr
(
value
,
"pci-"
)))
{
attribs
->
busid
=
XNFstrdup
(
str
);
attribs
->
busid
[
3
]
=
':'
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment