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
1ceb906b
Commit
1ceb906b
authored
Jul 24, 2008
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sis5513: add ->remove method and module_exit()
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
fe382580
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
drivers/ide/pci/sis5513.c
drivers/ide/pci/sis5513.c
+13
-0
No files found.
drivers/ide/pci/sis5513.c
View file @
1ceb906b
...
...
@@ -586,6 +586,12 @@ static int __devinit sis5513_init_one(struct pci_dev *dev, const struct pci_devi
return
ide_pci_init_one
(
dev
,
&
d
,
NULL
);
}
static
void
__devexit
sis5513_remove
(
struct
pci_dev
*
dev
)
{
ide_pci_remove
(
dev
);
pci_disable_device
(
dev
);
}
static
const
struct
pci_device_id
sis5513_pci_tbl
[]
=
{
{
PCI_VDEVICE
(
SI
,
PCI_DEVICE_ID_SI_5513
),
0
},
{
PCI_VDEVICE
(
SI
,
PCI_DEVICE_ID_SI_5518
),
0
},
...
...
@@ -598,6 +604,7 @@ static struct pci_driver driver = {
.
name
=
"SIS_IDE"
,
.
id_table
=
sis5513_pci_tbl
,
.
probe
=
sis5513_init_one
,
.
remove
=
sis5513_remove
,
};
static
int
__init
sis5513_ide_init
(
void
)
...
...
@@ -605,7 +612,13 @@ static int __init sis5513_ide_init(void)
return
ide_pci_register_driver
(
&
driver
);
}
static
void
__exit
sis5513_ide_exit
(
void
)
{
pci_unregister_driver
(
&
driver
);
}
module_init
(
sis5513_ide_init
);
module_exit
(
sis5513_ide_exit
);
MODULE_AUTHOR
(
"Lionel Bouton, L C Chang, Andre Hedrick, Vojtech Pavlik"
);
MODULE_DESCRIPTION
(
"PCI driver module for SIS IDE"
);
...
...
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