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
46069ed2
Commit
46069ed2
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 ariadne] use alloc_etherdev
parent
b0cba8a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
drivers/net/ariadne.c
drivers/net/ariadne.c
+8
-2
No files found.
drivers/net/ariadne.c
View file @
46069ed2
...
@@ -168,7 +168,7 @@ static int __init ariadne_probe(void)
...
@@ -168,7 +168,7 @@ static int __init ariadne_probe(void)
continue
;
continue
;
}
}
dev
=
init_etherdev
(
NULL
,
sizeof
(
struct
ariadne_private
));
dev
=
alloc_etherdev
(
sizeof
(
struct
ariadne_private
));
if
(
dev
==
NULL
)
{
if
(
dev
==
NULL
)
{
release_resource
(
r1
);
release_resource
(
r1
);
...
@@ -205,11 +205,17 @@ static int __init ariadne_probe(void)
...
@@ -205,11 +205,17 @@ static int __init ariadne_probe(void)
dev
->
get_stats
=
&
ariadne_get_stats
;
dev
->
get_stats
=
&
ariadne_get_stats
;
dev
->
set_multicast_list
=
&
set_multicast_list
;
dev
->
set_multicast_list
=
&
set_multicast_list
;
res
=
register_netdev
(
dev
);
if
(
res
)
{
release_resource
(
r1
);
release_resource
(
r2
);
free_netdev
(
dev
);
break
;
}
#ifdef MODULE
#ifdef MODULE
priv
->
next_module
=
root_ariadne_dev
;
priv
->
next_module
=
root_ariadne_dev
;
root_ariadne_dev
=
priv
;
root_ariadne_dev
=
priv
;
#endif
#endif
res
=
0
;
}
}
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