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
b0cba8a2
Commit
b0cba8a2
authored
Jan 10, 2004
by
Alexander Viro
Committed by
Stephen Hemminger
Jan 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr a2065] convert to alloc_etherdev
parent
6ffc67a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
drivers/net/a2065.c
drivers/net/a2065.c
+12
-7
No files found.
drivers/net/a2065.c
View file @
b0cba8a2
...
@@ -737,7 +737,7 @@ static int __init a2065_probe(void)
...
@@ -737,7 +737,7 @@ static int __init a2065_probe(void)
continue
;
continue
;
}
}
dev
=
init_etherdev
(
NULL
,
sizeof
(
struct
lance_private
));
dev
=
alloc_etherdev
(
0
,
sizeof
(
struct
lance_private
));
if
(
dev
==
NULL
)
{
if
(
dev
==
NULL
)
{
release_resource
(
r1
);
release_resource
(
r1
);
...
@@ -791,17 +791,22 @@ static int __init a2065_probe(void)
...
@@ -791,17 +791,22 @@ static int __init a2065_probe(void)
dev
->
set_multicast_list
=
&
lance_set_multicast
;
dev
->
set_multicast_list
=
&
lance_set_multicast
;
dev
->
dma
=
0
;
dev
->
dma
=
0
;
#ifdef MODULE
priv
->
next_module
=
root_a2065_dev
;
root_a2065_dev
=
priv
;
#endif
ether_setup
(
dev
);
init_timer
(
&
priv
->
multicast_timer
);
init_timer
(
&
priv
->
multicast_timer
);
priv
->
multicast_timer
.
data
=
(
unsigned
long
)
dev
;
priv
->
multicast_timer
.
data
=
(
unsigned
long
)
dev
;
priv
->
multicast_timer
.
function
=
priv
->
multicast_timer
.
function
=
(
void
(
*
)(
unsigned
long
))
&
lance_set_multicast
;
(
void
(
*
)(
unsigned
long
))
&
lance_set_multicast
;
res
=
0
;
res
=
register_netdev
(
dev
);
if
(
res
)
{
release_resource
(
r1
);
release_resource
(
r2
);
free_netdev
(
dev
);
break
;
}
#ifdef MODULE
priv
->
next_module
=
root_a2065_dev
;
root_a2065_dev
=
priv
;
#endif
}
}
return
res
;
return
res
;
}
}
...
...
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