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
d345d970
Commit
d345d970
authored
Sep 29, 2010
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: fm801-gp - add missing call to pci_disable_device()
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
d8daece8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
drivers/input/gameport/emu10k1-gp.c
drivers/input/gameport/emu10k1-gp.c
+2
-1
drivers/input/gameport/fm801-gp.c
drivers/input/gameport/fm801-gp.c
+5
-5
No files found.
drivers/input/gameport/emu10k1-gp.c
View file @
d345d970
...
@@ -106,8 +106,9 @@ static void __devexit emu_remove(struct pci_dev *pdev)
...
@@ -106,8 +106,9 @@ static void __devexit emu_remove(struct pci_dev *pdev)
gameport_unregister_port
(
emu
->
gameport
);
gameport_unregister_port
(
emu
->
gameport
);
release_region
(
emu
->
io
,
emu
->
size
);
release_region
(
emu
->
io
,
emu
->
size
);
pci_disable_device
(
pdev
);
kfree
(
emu
);
kfree
(
emu
);
pci_disable_device
(
pdev
);
}
}
static
struct
pci_driver
emu_driver
=
{
static
struct
pci_driver
emu_driver
=
{
...
...
drivers/input/gameport/fm801-gp.c
View file @
d345d970
...
@@ -133,11 +133,11 @@ static void __devexit fm801_gp_remove(struct pci_dev *pci)
...
@@ -133,11 +133,11 @@ static void __devexit fm801_gp_remove(struct pci_dev *pci)
{
{
struct
fm801_gp
*
gp
=
pci_get_drvdata
(
pci
);
struct
fm801_gp
*
gp
=
pci_get_drvdata
(
pci
);
if
(
gp
)
{
gameport_unregister_port
(
gp
->
gameport
);
gameport_unregister_port
(
gp
->
game
port
);
release_resource
(
gp
->
res_
port
);
release_resource
(
gp
->
res_port
);
kfree
(
gp
);
kfree
(
gp
);
}
pci_disable_device
(
pci
);
}
}
static
const
struct
pci_device_id
fm801_gp_id_table
[]
=
{
static
const
struct
pci_device_id
fm801_gp_id_table
[]
=
{
...
...
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