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
585f67e7
Commit
585f67e7
authored
Jul 24, 2008
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
via82cxxx: add ->remove method and module_exit()
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
fc2c32b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
drivers/ide/pci/via82cxxx.c
drivers/ide/pci/via82cxxx.c
+16
-0
No files found.
drivers/ide/pci/via82cxxx.c
View file @
585f67e7
...
...
@@ -467,6 +467,15 @@ static int __devinit via_init_one(struct pci_dev *dev, const struct pci_device_i
return
rc
;
}
static
void
__devexit
via_remove
(
struct
pci_dev
*
dev
)
{
struct
ide_host
*
host
=
pci_get_drvdata
(
dev
);
struct
via82cxxx_dev
*
vdev
=
host
->
host_priv
;
ide_pci_remove
(
dev
);
kfree
(
vdev
);
}
static
const
struct
pci_device_id
via_pci_tbl
[]
=
{
{
PCI_VDEVICE
(
VIA
,
PCI_DEVICE_ID_VIA_82C576_1
),
0
},
{
PCI_VDEVICE
(
VIA
,
PCI_DEVICE_ID_VIA_82C586_1
),
0
},
...
...
@@ -481,6 +490,7 @@ static struct pci_driver driver = {
.
name
=
"VIA_IDE"
,
.
id_table
=
via_pci_tbl
,
.
probe
=
via_init_one
,
.
remove
=
via_remove
,
};
static
int
__init
via_ide_init
(
void
)
...
...
@@ -488,7 +498,13 @@ static int __init via_ide_init(void)
return
ide_pci_register_driver
(
&
driver
);
}
static
void
__exit
via_ide_exit
(
void
)
{
pci_unregister_driver
(
&
driver
);
}
module_init
(
via_ide_init
);
module_exit
(
via_ide_exit
);
MODULE_AUTHOR
(
"Vojtech Pavlik, Michel Aubry, Jeff Garzik, Andre Hedrick"
);
MODULE_DESCRIPTION
(
"PCI driver module for VIA 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