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
399f8927
Commit
399f8927
authored
Jun 11, 2003
by
Stephen Hemminger
Committed by
David S. Miller
Jun 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ACENIC]: Convert to alloc_etherdev.
parent
ead822b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
drivers/net/acenic.c
drivers/net/acenic.c
+7
-9
No files found.
drivers/net/acenic.c
View file @
399f8927
...
...
@@ -642,8 +642,7 @@ int __devinit acenic_probe (ACE_PROBE_ARG)
(
pdev
->
device
==
PCI_DEVICE_ID_SGI_ACENIC
)))
continue
;
dev
=
init_etherdev
(
NULL
,
sizeof
(
struct
ace_private
));
dev
=
alloc_etherdev
(
sizeof
(
struct
ace_private
));
if
(
dev
==
NULL
)
{
printk
(
KERN_ERR
"acenic: Unable to allocate "
"net_device structure!
\n
"
);
...
...
@@ -653,13 +652,6 @@ int __devinit acenic_probe (ACE_PROBE_ARG)
SET_MODULE_OWNER
(
dev
);
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
if
(
!
dev
->
priv
)
dev
->
priv
=
kmalloc
(
sizeof
(
*
ap
),
GFP_KERNEL
);
if
(
!
dev
->
priv
)
{
printk
(
KERN_ERR
"acenic: Unable to allocate memory
\n
"
);
return
-
ENOMEM
;
}
ap
=
dev
->
priv
;
ap
->
pdev
=
pdev
;
...
...
@@ -739,6 +731,12 @@ int __devinit acenic_probe (ACE_PROBE_ARG)
break
;
}
if
(
register_netdev
(
dev
))
{
printk
(
KERN_ERR
"acenic: device registration failed
\n
"
);
kfree
(
dev
);
continue
;
}
switch
(
pdev
->
vendor
)
{
case
PCI_VENDOR_ID_ALTEON
:
if
(
pdev
->
device
==
PCI_DEVICE_ID_FARALLON_PN9100T
)
{
...
...
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