Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
620bb636
Commit
620bb636
authored
Mar 29, 2010
by
Paul Mundt
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sh/driver-core' into sh/clkfwk
parents
c7ed1ab3
bd05086b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
drivers/base/platform.c
drivers/base/platform.c
+8
-7
No files found.
drivers/base/platform.c
View file @
620bb636
...
@@ -1245,19 +1245,20 @@ static int __init early_platform_driver_probe_id(char *class_str,
...
@@ -1245,19 +1245,20 @@ static int __init early_platform_driver_probe_id(char *class_str,
* rest of the driver core is initialized.
* rest of the driver core is initialized.
*/
*/
if
(
!
match
->
dev
.
init_name
)
{
if
(
!
match
->
dev
.
init_name
)
{
char
buf
[
32
];
if
(
match
->
id
!=
-
1
)
if
(
match
->
id
!=
-
1
)
snprintf
(
buf
,
sizeof
(
buf
),
"%s.%d"
,
match
->
dev
.
init_name
=
match
->
name
,
match
->
id
);
kasprintf
(
GFP_KERNEL
,
"%s.%d"
,
match
->
name
,
match
->
id
);
else
else
snprintf
(
buf
,
sizeof
(
buf
),
"%s"
,
match
->
dev
.
init_name
=
match
->
name
);
kasprintf
(
GFP_KERNEL
,
"%s"
,
match
->
name
);
match
->
dev
.
init_name
=
kstrdup
(
buf
,
GFP_KERNEL
);
if
(
!
match
->
dev
.
init_name
)
if
(
!
match
->
dev
.
init_name
)
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
if
(
epdrv
->
pdrv
->
probe
(
match
))
if
(
epdrv
->
pdrv
->
probe
(
match
))
pr_warning
(
"%s: unable to probe %s early.
\n
"
,
pr_warning
(
"%s: unable to probe %s early.
\n
"
,
class_str
,
match
->
name
);
class_str
,
match
->
name
);
...
...
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