Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
linux
linux-davinci
Commits
0a66045b
Commit
0a66045b
authored
Oct 12, 2006
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: serio core - handle errors returned by device_bind_driver()
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
07646e21
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
drivers/input/serio/serio.c
drivers/input/serio/serio.c
+14
-2
No files found.
drivers/input/serio/serio.c
View file @
0a66045b
...
...
@@ -118,6 +118,8 @@ static int serio_match_port(const struct serio_device_id *ids, struct serio *ser
static
void
serio_bind_driver
(
struct
serio
*
serio
,
struct
serio_driver
*
drv
)
{
int
error
;
down_write
(
&
serio_bus
.
subsys
.
rwsem
);
if
(
serio_match_port
(
drv
->
id_table
,
serio
))
{
...
...
@@ -126,9 +128,19 @@ static void serio_bind_driver(struct serio *serio, struct serio_driver *drv)
serio
->
dev
.
driver
=
NULL
;
goto
out
;
}
device_bind_driver
(
&
serio
->
dev
);
error
=
device_bind_driver
(
&
serio
->
dev
);
if
(
error
)
{
printk
(
KERN_WARNING
"serio: device_bind_driver() failed "
"for %s (%s) and %s, error: %d
\n
"
,
serio
->
phys
,
serio
->
name
,
drv
->
description
,
error
);
serio_disconnect_driver
(
serio
);
serio
->
dev
.
driver
=
NULL
;
goto
out
;
}
out:
}
out:
up_write
(
&
serio_bus
.
subsys
.
rwsem
);
}
...
...
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