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
a59e8eb9
Commit
a59e8eb9
authored
May 18, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o drivers/net/wan/sdla*: use SET_MODULE_OWNER at net_device setup
parent
56d8e8cb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
2 deletions
+6
-2
drivers/net/wan/sdla.c
drivers/net/wan/sdla.c
+2
-1
drivers/net/wan/sdla_chdlc.c
drivers/net/wan/sdla_chdlc.c
+1
-1
drivers/net/wan/sdla_fr.c
drivers/net/wan/sdla_fr.c
+1
-0
drivers/net/wan/sdla_ppp.c
drivers/net/wan/sdla_ppp.c
+1
-0
drivers/net/wan/sdla_x25.c
drivers/net/wan/sdla_x25.c
+1
-0
No files found.
drivers/net/wan/sdla.c
View file @
a59e8eb9
...
...
@@ -1636,9 +1636,10 @@ int __init sdla_init(struct net_device *dev)
dev
->
change_mtu
=
sdla_change_mtu
;
dev
->
type
=
0xFFFF
;
dev
->
hard_header_len
=
0
;
dev
->
hard_header_len
=
0
;
dev
->
addr_len
=
0
;
dev
->
mtu
=
SDLA_MAX_MTU
;
SET_MODULE_OWNER
(
dev
);
flp
->
activate
=
sdla_activate
;
flp
->
deactivate
=
sdla_deactivate
;
...
...
drivers/net/wan/sdla_chdlc.c
View file @
a59e8eb9
...
...
@@ -914,7 +914,6 @@ static int if_init(struct net_device* dev)
dev
->
get_stats
=
&
if_stats
;
dev
->
tx_timeout
=
&
if_tx_timeout
;
dev
->
watchdog_timeo
=
TX_TIMEOUT
;
/* Initialize media-specific parameters */
dev
->
flags
|=
IFF_POINTOPOINT
;
...
...
@@ -951,6 +950,7 @@ static int if_init(struct net_device* dev)
* by stack.
*/
dev
->
tx_queue_len
=
100
;
SET_MODULE_OWNER
(
dev
);
return
0
;
}
...
...
drivers/net/wan/sdla_fr.c
View file @
a59e8eb9
...
...
@@ -1187,6 +1187,7 @@ static int if_init(struct net_device* dev)
dev
->
base_addr
=
wandev
->
ioport
;
dev
->
mem_start
=
wandev
->
maddr
;
dev
->
mem_end
=
wandev
->
maddr
+
wandev
->
msize
-
1
;
SET_MODULE_OWNER
(
dev
);
return
0
;
}
...
...
drivers/net/wan/sdla_ppp.c
View file @
a59e8eb9
...
...
@@ -722,6 +722,7 @@ static int if_init(struct net_device *dev)
/* Set transmit buffer queue length */
dev
->
tx_queue_len
=
100
;
SET_MODULE_OWNER
(
dev
);
return
0
;
}
...
...
drivers/net/wan/sdla_x25.c
View file @
a59e8eb9
...
...
@@ -1148,6 +1148,7 @@ static int if_init(struct net_device* dev)
/* Set transmit buffer queue length */
dev
->
tx_queue_len
=
100
;
SET_MODULE_OWNER
(
dev
);
/* FIXME Why are we doing this */
set_chan_state
(
dev
,
WAN_DISCONNECTED
);
...
...
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