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
d69c8f8c
Commit
d69c8f8c
authored
Jul 24, 2008
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdc202xx_new: add ->remove method and module_exit()
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
adc7f85a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
drivers/ide/pci/pdc202xx_new.c
drivers/ide/pci/pdc202xx_new.c
+16
-0
No files found.
drivers/ide/pci/pdc202xx_new.c
View file @
d69c8f8c
...
@@ -543,6 +543,15 @@ static int __devinit pdc202new_init_one(struct pci_dev *dev, const struct pci_de
...
@@ -543,6 +543,15 @@ static int __devinit pdc202new_init_one(struct pci_dev *dev, const struct pci_de
return
ide_pci_init_one
(
dev
,
d
,
NULL
);
return
ide_pci_init_one
(
dev
,
d
,
NULL
);
}
}
static
void
__devexit
pdc202new_remove
(
struct
pci_dev
*
dev
)
{
struct
ide_host
*
host
=
pci_get_drvdata
(
dev
);
struct
pci_dev
*
dev2
=
host
->
dev
[
1
]
?
to_pci_dev
(
host
->
dev
[
1
])
:
NULL
;
ide_pci_remove
(
dev
);
pci_dev_put
(
dev2
);
}
static
const
struct
pci_device_id
pdc202new_pci_tbl
[]
=
{
static
const
struct
pci_device_id
pdc202new_pci_tbl
[]
=
{
{
PCI_VDEVICE
(
PROMISE
,
PCI_DEVICE_ID_PROMISE_20268
),
0
},
{
PCI_VDEVICE
(
PROMISE
,
PCI_DEVICE_ID_PROMISE_20268
),
0
},
{
PCI_VDEVICE
(
PROMISE
,
PCI_DEVICE_ID_PROMISE_20269
),
1
},
{
PCI_VDEVICE
(
PROMISE
,
PCI_DEVICE_ID_PROMISE_20269
),
1
},
...
@@ -559,6 +568,7 @@ static struct pci_driver driver = {
...
@@ -559,6 +568,7 @@ static struct pci_driver driver = {
.
name
=
"Promise_IDE"
,
.
name
=
"Promise_IDE"
,
.
id_table
=
pdc202new_pci_tbl
,
.
id_table
=
pdc202new_pci_tbl
,
.
probe
=
pdc202new_init_one
,
.
probe
=
pdc202new_init_one
,
.
remove
=
pdc202new_remove
,
};
};
static
int
__init
pdc202new_ide_init
(
void
)
static
int
__init
pdc202new_ide_init
(
void
)
...
@@ -566,7 +576,13 @@ static int __init pdc202new_ide_init(void)
...
@@ -566,7 +576,13 @@ static int __init pdc202new_ide_init(void)
return
ide_pci_register_driver
(
&
driver
);
return
ide_pci_register_driver
(
&
driver
);
}
}
static
void
__exit
pdc202new_ide_exit
(
void
)
{
pci_unregister_driver
(
&
driver
);
}
module_init
(
pdc202new_ide_init
);
module_init
(
pdc202new_ide_init
);
module_exit
(
pdc202new_ide_exit
);
MODULE_AUTHOR
(
"Andre Hedrick, Frank Tiernan"
);
MODULE_AUTHOR
(
"Andre Hedrick, Frank Tiernan"
);
MODULE_DESCRIPTION
(
"PCI driver module for Promise PDC20268 and higher"
);
MODULE_DESCRIPTION
(
"PCI driver module for Promise PDC20268 and higher"
);
...
...
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