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
a1b4a029
Commit
a1b4a029
authored
Jun 18, 2003
by
Stephen Hemminger
Committed by
David S. Miller
Jun 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Move Red Creek VPN drier to alloc_etherdev().
parent
a9e4c8a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
drivers/net/rcpci45.c
drivers/net/rcpci45.c
+7
-6
No files found.
drivers/net/rcpci45.c
View file @
a1b4a029
...
...
@@ -171,13 +171,14 @@ rcpci45_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
* will be assigned to the LAN API layer.
*/
dev
=
init_etherdev
(
NULL
,
sizeof
(
*
pDpa
));
dev
=
alloc_etherdev
(
sizeof
(
*
pDpa
));
if
(
!
dev
)
{
printk
(
KERN_ERR
"(rcpci45 driver:)
init
_etherdev alloc failed
\n
"
);
"(rcpci45 driver:)
alloc
_etherdev alloc failed
\n
"
);
error
=
-
ENOMEM
;
goto
err_out
;
}
SET_MODULE_OWNER
(
dev
);
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
...
...
@@ -257,6 +258,9 @@ rcpci45_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
dev
->
do_ioctl
=
&
RCioctl
;
dev
->
set_config
=
&
RCconfig
;
if
((
error
=
register_netdev
(
dev
)))
goto
err_out_free_region
;
return
0
;
/* success */
err_out_free_region:
...
...
@@ -265,7 +269,6 @@ rcpci45_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
pci_free_consistent
(
pdev
,
MSG_BUF_SIZE
,
pDpa
->
msgbuf
,
pDpa
->
msgbuf_dma
);
err_out_free_dev:
unregister_netdev
(
dev
);
kfree
(
dev
);
err_out:
card_idx
--
;
...
...
@@ -717,11 +720,9 @@ rc_timer (unsigned long data)
if
(
retry
>
REBOOT_REINIT_RETRY_LIMIT
)
{
printk
(
KERN_WARNING
"%s unable to reinitialize adapter after reboot
\n
"
,
dev
->
name
);
printk
(
KERN_WARNING
"%s
decrementing driver and closing
interface
\n
"
,
dev
->
name
);
printk
(
KERN_WARNING
"%s
shutting down
interface
\n
"
,
dev
->
name
);
RCDisableI2OInterrupts
(
dev
);
dev
->
flags
&=
~
IFF_UP
;
MOD_DEC_USE_COUNT
;
/* FIXME: kill MOD_DEC_USE_COUNT, use dev_put */
}
else
{
printk
(
KERN_INFO
"%s: rescheduling timer...
\n
"
,
dev
->
name
);
...
...
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