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
487abe7c
Commit
487abe7c
authored
Jun 30, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o wl3501: initialize link->release timer and use alloc_etherdev
parent
3d96ba10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
drivers/net/wireless/wl3501_cs.c
drivers/net/wireless/wl3501_cs.c
+2
-5
No files found.
drivers/net/wireless/wl3501_cs.c
View file @
487abe7c
...
...
@@ -2103,6 +2103,7 @@ static dev_link_t *wl3501_attach(void)
if
(
!
link
)
goto
out
;
memset
(
link
,
0
,
sizeof
(
struct
dev_link_t
));
init_timer
(
&
link
->
release
);
link
->
release
.
function
=
wl3501_release
;
link
->
release
.
data
=
(
unsigned
long
)
link
;
...
...
@@ -2129,13 +2130,9 @@ static dev_link_t *wl3501_attach(void)
link
->
conf
.
ConfigIndex
=
1
;
link
->
conf
.
Present
=
PRESENT_OPTION
;
/* Allocate space for private device-specific data */
dev
=
kmalloc
(
sizeof
(
*
dev
)
+
sizeof
(
struct
wl3501_card
),
GFP_KERNEL
);
dev
=
alloc_etherdev
(
sizeof
(
struct
wl3501_card
));
if
(
!
dev
)
goto
out_link
;
memset
(
dev
,
0
,
sizeof
(
*
dev
)
+
sizeof
(
struct
wl3501_card
));
ether_setup
(
dev
);
dev
->
priv
=
dev
+
1
;
dev
->
init
=
wl3501_init
;
dev
->
open
=
wl3501_open
;
dev
->
stop
=
wl3501_close
;
...
...
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