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
e68c43c9
Commit
e68c43c9
authored
Aug 17, 2003
by
Javier Achirica
Committed by
Jeff Garzik
Aug 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[wireless airo] Fix PCI unregister code
parent
aa6521ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
drivers/net/wireless/airo.c
drivers/net/wireless/airo.c
+10
-0
No files found.
drivers/net/wireless/airo.c
View file @
e68c43c9
...
@@ -1025,6 +1025,7 @@ struct airo_info {
...
@@ -1025,6 +1025,7 @@ struct airo_info {
#define FLAG_802_11 0x200
#define FLAG_802_11 0x200
#define FLAG_PENDING_XMIT 0x400
#define FLAG_PENDING_XMIT 0x400
#define FLAG_PENDING_XMIT11 0x800
#define FLAG_PENDING_XMIT11 0x800
#define FLAG_PCI 0x1000
int
(
*
bap_read
)(
struct
airo_info
*
,
u16
*
pu16Dst
,
int
bytelen
,
int
(
*
bap_read
)(
struct
airo_info
*
,
u16
*
pu16Dst
,
int
bytelen
,
int
whichbap
);
int
whichbap
);
unsigned
short
*
flash
;
unsigned
short
*
flash
;
...
@@ -4093,6 +4094,7 @@ static int __devinit airo_pci_probe(struct pci_dev *pdev,
...
@@ -4093,6 +4094,7 @@ static int __devinit airo_pci_probe(struct pci_dev *pdev,
return
-
ENODEV
;
return
-
ENODEV
;
pci_set_drvdata
(
pdev
,
dev
);
pci_set_drvdata
(
pdev
,
dev
);
((
struct
airo_info
*
)
dev
->
priv
)
->
flags
|=
FLAG_PCI
;
return
0
;
return
0
;
}
}
...
@@ -4134,11 +4136,19 @@ static int __init airo_init_module( void )
...
@@ -4134,11 +4136,19 @@ static int __init airo_init_module( void )
static
void
__exit
airo_cleanup_module
(
void
)
static
void
__exit
airo_cleanup_module
(
void
)
{
{
int
is_pci
=
0
;
while
(
airo_devices
)
{
while
(
airo_devices
)
{
printk
(
KERN_INFO
"airo: Unregistering %s
\n
"
,
airo_devices
->
dev
->
name
);
printk
(
KERN_INFO
"airo: Unregistering %s
\n
"
,
airo_devices
->
dev
->
name
);
#ifdef CONFIG_PCI
if
(((
struct
airo_info
*
)
airo_devices
->
dev
->
priv
)
->
flags
&
FLAG_PCI
)
is_pci
=
1
;
#endif
stop_airo_card
(
airo_devices
->
dev
,
1
);
stop_airo_card
(
airo_devices
->
dev
,
1
);
}
}
remove_proc_entry
(
"aironet"
,
proc_root_driver
);
remove_proc_entry
(
"aironet"
,
proc_root_driver
);
if
(
is_pci
)
pci_unregister_driver
(
&
airo_driver
);
}
}
#ifdef WIRELESS_EXT
#ifdef WIRELESS_EXT
...
...
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