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
nexedi
linux
Commits
fe382580
Commit
fe382580
authored
Jul 24, 2008
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
siimage: add ->remove method and module_exit()
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
bc2c9a80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
drivers/ide/pci/siimage.c
drivers/ide/pci/siimage.c
+25
-0
No files found.
drivers/ide/pci/siimage.c
View file @
fe382580
...
@@ -800,6 +800,24 @@ static int __devinit siimage_init_one(struct pci_dev *dev,
...
@@ -800,6 +800,24 @@ static int __devinit siimage_init_one(struct pci_dev *dev,
return
rc
;
return
rc
;
}
}
static
void
__devexit
siimage_remove
(
struct
pci_dev
*
dev
)
{
struct
ide_host
*
host
=
pci_get_drvdata
(
dev
);
void
__iomem
*
ioaddr
=
host
->
host_priv
;
ide_pci_remove
(
dev
);
if
(
ioaddr
)
{
resource_size_t
bar5
=
pci_resource_start
(
dev
,
5
);
unsigned
long
barsize
=
pci_resource_len
(
dev
,
5
);
iounmap
(
ioaddr
);
release_mem_region
(
bar5
,
barsize
);
}
pci_disable_device
(
dev
);
}
static
const
struct
pci_device_id
siimage_pci_tbl
[]
=
{
static
const
struct
pci_device_id
siimage_pci_tbl
[]
=
{
{
PCI_VDEVICE
(
CMD
,
PCI_DEVICE_ID_SII_680
),
0
},
{
PCI_VDEVICE
(
CMD
,
PCI_DEVICE_ID_SII_680
),
0
},
#ifdef CONFIG_BLK_DEV_IDE_SATA
#ifdef CONFIG_BLK_DEV_IDE_SATA
...
@@ -814,6 +832,7 @@ static struct pci_driver driver = {
...
@@ -814,6 +832,7 @@ static struct pci_driver driver = {
.
name
=
"SiI_IDE"
,
.
name
=
"SiI_IDE"
,
.
id_table
=
siimage_pci_tbl
,
.
id_table
=
siimage_pci_tbl
,
.
probe
=
siimage_init_one
,
.
probe
=
siimage_init_one
,
.
remove
=
siimage_remove
,
};
};
static
int
__init
siimage_ide_init
(
void
)
static
int
__init
siimage_ide_init
(
void
)
...
@@ -821,7 +840,13 @@ static int __init siimage_ide_init(void)
...
@@ -821,7 +840,13 @@ static int __init siimage_ide_init(void)
return
ide_pci_register_driver
(
&
driver
);
return
ide_pci_register_driver
(
&
driver
);
}
}
static
void
__exit
siimage_ide_exit
(
void
)
{
pci_unregister_driver
(
&
driver
);
}
module_init
(
siimage_ide_init
);
module_init
(
siimage_ide_init
);
module_exit
(
siimage_ide_exit
);
MODULE_AUTHOR
(
"Andre Hedrick, Alan Cox"
);
MODULE_AUTHOR
(
"Andre Hedrick, Alan Cox"
);
MODULE_DESCRIPTION
(
"PCI driver module for SiI IDE"
);
MODULE_DESCRIPTION
(
"PCI driver module for SiI 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