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
4a2f92b2
Commit
4a2f92b2
authored
May 29, 2003
by
Andrew Morton
Committed by
David S. Miller
May 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Convert rtnl_lock/register_netdevice/rtnl_unlock to register_netdev.
parent
ee2c0020
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
21 additions
and
53 deletions
+21
-53
drivers/net/hamradio/dmascc.c
drivers/net/hamradio/dmascc.c
+2
-5
drivers/net/irda/ali-ircc.c
drivers/net/irda/ali-ircc.c
+2
-5
drivers/net/irda/donauboe.c
drivers/net/irda/donauboe.c
+1
-6
drivers/net/irda/irda-usb.c
drivers/net/irda/irda-usb.c
+4
-6
drivers/net/irda/irport.c
drivers/net/irda/irport.c
+2
-5
drivers/net/irda/irtty.c
drivers/net/irda/irtty.c
+2
-5
drivers/net/irda/nsc-ircc.c
drivers/net/irda/nsc-ircc.c
+2
-5
drivers/net/irda/sa1100_ir.c
drivers/net/irda/sa1100_ir.c
+2
-5
drivers/net/irda/toshoboe.c
drivers/net/irda/toshoboe.c
+2
-6
drivers/net/irda/w83977af_ir.c
drivers/net/irda/w83977af_ir.c
+2
-5
No files found.
drivers/net/hamradio/dmascc.c
View file @
4a2f92b2
...
...
@@ -324,11 +324,8 @@ void cleanup_module(void) {
/* Unregister devices */
for
(
i
=
0
;
i
<
2
;
i
++
)
{
if
(
info
->
dev
[
i
].
name
)
{
rtnl_lock
();
unregister_netdevice
(
&
info
->
dev
[
i
]);
rtnl_unlock
();
}
if
(
info
->
dev
[
i
].
name
)
unregister_netdev
(
&
info
->
dev
[
i
]);
}
/* Reset board */
...
...
drivers/net/irda/ali-ircc.c
View file @
4a2f92b2
...
...
@@ -390,11 +390,8 @@ static int __exit ali_ircc_close(struct ali_ircc_cb *self)
iobase
=
self
->
io
.
fir_base
;
/* Remove netdevice */
if
(
self
->
netdev
)
{
rtnl_lock
();
unregister_netdevice
(
self
->
netdev
);
rtnl_unlock
();
}
if
(
self
->
netdev
)
unregister_netdev
(
self
->
netdev
);
/* Release the PORT that this driver is using */
IRDA_DEBUG
(
4
,
"%s(), Releasing Region %03x
\n
"
,
__FUNCTION__
,
self
->
io
.
fir_base
);
...
...
drivers/net/irda/donauboe.c
View file @
4a2f92b2
...
...
@@ -1579,12 +1579,7 @@ toshoboe_close (struct pci_dev *pci_dev)
}
if
(
self
->
netdev
)
{
/* Remove netdevice */
rtnl_lock
();
unregister_netdevice
(
self
->
netdev
);
rtnl_unlock
();
}
unregister_netdev
(
self
->
netdev
);
kfree
(
self
->
ringbuf
);
self
->
ringbuf
=
NULL
;
...
...
drivers/net/irda/irda-usb.c
View file @
4a2f92b2
...
...
@@ -1231,12 +1231,10 @@ static inline int irda_usb_close(struct irda_usb_cb *self)
ASSERT
(
self
!=
NULL
,
return
-
1
;);
/* Remove netdevice */
if
(
self
->
netdev
)
{
rtnl_lock
();
unregister_netdevice
(
self
->
netdev
);
self
->
netdev
=
NULL
;
rtnl_unlock
();
}
if
(
self
->
netdev
)
unregister_netdev
(
self
->
netdev
);
self
->
netdev
=
NULL
;
/* Remove the speed buffer */
if
(
self
->
speed_buff
!=
NULL
)
{
kfree
(
self
->
speed_buff
);
...
...
drivers/net/irda/irport.c
View file @
4a2f92b2
...
...
@@ -267,11 +267,8 @@ int irport_close(struct irport_cb *self)
self
->
dongle
=
NULL
;
/* Remove netdevice */
if
(
self
->
netdev
)
{
rtnl_lock
();
unregister_netdevice
(
self
->
netdev
);
rtnl_unlock
();
}
if
(
self
->
netdev
)
unregister_netdev
(
self
->
netdev
);
/* Release the IO-port that this driver is using */
IRDA_DEBUG
(
0
,
"%s(), Releasing Region %03x
\n
"
,
...
...
drivers/net/irda/irtty.c
View file @
4a2f92b2
...
...
@@ -282,11 +282,8 @@ static void irtty_close(struct tty_struct *tty)
self
->
dongle
=
NULL
;
/* Remove netdevice */
if
(
self
->
netdev
)
{
rtnl_lock
();
unregister_netdevice
(
self
->
netdev
);
rtnl_unlock
();
}
if
(
self
->
netdev
)
unregister_netdev
(
self
->
netdev
);
self
=
hashbin_remove
(
irtty
,
(
int
)
self
,
NULL
);
...
...
drivers/net/irda/nsc-ircc.c
View file @
4a2f92b2
...
...
@@ -391,11 +391,8 @@ static int __exit nsc_ircc_close(struct nsc_ircc_cb *self)
iobase
=
self
->
io
.
fir_base
;
/* Remove netdevice */
if
(
self
->
netdev
)
{
rtnl_lock
();
unregister_netdevice
(
self
->
netdev
);
rtnl_unlock
();
}
if
(
self
->
netdev
)
unregister_netdev
(
self
->
netdev
);
/* Release the PORT that this driver is using */
IRDA_DEBUG
(
4
,
"%s(), Releasing Region %03x
\n
"
,
...
...
drivers/net/irda/sa1100_ir.c
View file @
4a2f92b2
...
...
@@ -1122,11 +1122,8 @@ static void __exit sa1100_irda_exit(void)
{
struct
net_device
*
dev
=
dev_get_drvdata
(
&
sa1100ir_device
.
dev
);
if
(
dev
)
{
rtnl_lock
();
unregister_netdevice
(
dev
);
rtnl_unlock
();
}
if
(
dev
)
unregister_netdev
(
dev
);
sys_device_unregister
(
&
sa1100ir_device
);
driver_unregister
(
&
sa1100ir_driver
);
...
...
drivers/net/irda/toshoboe.c
View file @
4a2f92b2
...
...
@@ -679,12 +679,8 @@ toshoboe_remove (struct pci_dev *pci_dev)
self
->
recv_bufs
[
i
]
=
NULL
;
}
if
(
self
->
netdev
)
{
/* Remove netdevice */
rtnl_lock
();
unregister_netdevice
(
self
->
netdev
);
rtnl_unlock
();
}
if
(
self
->
netdev
)
unregister_netdev
(
self
->
netdev
);
kfree
(
self
->
taskfilebuf
);
self
->
taskfilebuf
=
NULL
;
...
...
drivers/net/irda/w83977af_ir.c
View file @
4a2f92b2
...
...
@@ -299,11 +299,8 @@ static int w83977af_close(struct w83977af_ir *self)
#endif
/* CONFIG_USE_W977_PNP */
/* Remove netdevice */
if
(
self
->
netdev
)
{
rtnl_lock
();
unregister_netdevice
(
self
->
netdev
);
rtnl_unlock
();
}
if
(
self
->
netdev
)
unregister_netdev
(
self
->
netdev
);
/* Release the PORT that this driver is using */
IRDA_DEBUG
(
0
,
"%s(), Releasing Region %03x
\n
"
,
...
...
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