Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
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-2.6.23
Commits
23de1510
Commit
23de1510
authored
Oct 12, 2006
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: gameport core - handle errors returned by device_bind_driver()
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
0a66045b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
drivers/input/gameport/gameport.c
drivers/input/gameport/gameport.c
+16
-2
No files found.
drivers/input/gameport/gameport.c
View file @
23de1510
...
...
@@ -191,6 +191,8 @@ static void gameport_run_poll_handler(unsigned long d)
static
void
gameport_bind_driver
(
struct
gameport
*
gameport
,
struct
gameport_driver
*
drv
)
{
int
error
;
down_write
(
&
gameport_bus
.
subsys
.
rwsem
);
gameport
->
dev
.
driver
=
&
drv
->
driver
;
...
...
@@ -198,8 +200,20 @@ static void gameport_bind_driver(struct gameport *gameport, struct gameport_driv
gameport
->
dev
.
driver
=
NULL
;
goto
out
;
}
device_bind_driver
(
&
gameport
->
dev
);
out:
error
=
device_bind_driver
(
&
gameport
->
dev
);
if
(
error
)
{
printk
(
KERN_WARNING
"gameport: device_bind_driver() failed "
"for %s (%s) and %s, error: %d
\n
"
,
gameport
->
phys
,
gameport
->
name
,
drv
->
description
,
error
);
drv
->
disconnect
(
gameport
);
gameport
->
dev
.
driver
=
NULL
;
goto
out
;
}
out:
up_write
(
&
gameport_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