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
Kirill Smelkov
linux
Commits
fff299a8
Commit
fff299a8
authored
Oct 17, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linuxusb@bkbits.net/linus-2.5
into kroah.com:/home/linux/linux/BK/gregkh-2.5
parents
28f5250b
d7d14bf8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
drivers/base/core.c
drivers/base/core.c
+3
-5
No files found.
drivers/base/core.c
View file @
fff299a8
...
@@ -54,7 +54,7 @@ static void attach(struct device * dev)
...
@@ -54,7 +54,7 @@ static void attach(struct device * dev)
*/
*/
static
int
found_match
(
struct
device
*
dev
,
struct
device_driver
*
drv
)
static
int
found_match
(
struct
device
*
dev
,
struct
device_driver
*
drv
)
{
{
int
error
;
int
error
=
0
;
if
(
!
(
error
=
probe
(
dev
,
get_driver
(
drv
))))
{
if
(
!
(
error
=
probe
(
dev
,
get_driver
(
drv
))))
{
pr_debug
(
"bound device '%s' to driver '%s'
\n
"
,
pr_debug
(
"bound device '%s' to driver '%s'
\n
"
,
...
@@ -64,7 +64,7 @@ static int found_match(struct device * dev, struct device_driver * drv)
...
@@ -64,7 +64,7 @@ static int found_match(struct device * dev, struct device_driver * drv)
put_driver
(
drv
);
put_driver
(
drv
);
dev
->
driver
=
NULL
;
dev
->
driver
=
NULL
;
}
}
return
error
==
0
;
return
error
;
}
}
/**
/**
...
@@ -75,9 +75,7 @@ static int found_match(struct device * dev, struct device_driver * drv)
...
@@ -75,9 +75,7 @@ static int found_match(struct device * dev, struct device_driver * drv)
* This function is used as a callback to bus_for_each_drv.
* This function is used as a callback to bus_for_each_drv.
* It calls the bus's match callback to check if the driver supports
* It calls the bus's match callback to check if the driver supports
* the device. If so, it calls the found_match() function above to
* the device. If so, it calls the found_match() function above to
* try taking care of all the details.
* take care of all the details.
*
* Returns zero (to continue the scan) if the driver didn't attach.
*/
*/
static
int
do_device_attach
(
struct
device_driver
*
drv
,
void
*
data
)
static
int
do_device_attach
(
struct
device_driver
*
drv
,
void
*
data
)
{
{
...
...
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