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
ecd41373
Commit
ecd41373
authored
Mar 23, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sunqe: Convert to net_device_ops.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
c7670718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
drivers/net/sunqe.c
drivers/net/sunqe.c
+9
-5
No files found.
drivers/net/sunqe.c
View file @
ecd41373
...
@@ -829,6 +829,14 @@ static struct sunqec * __devinit get_qec(struct of_device *child)
...
@@ -829,6 +829,14 @@ static struct sunqec * __devinit get_qec(struct of_device *child)
return
NULL
;
return
NULL
;
}
}
static
const
struct
net_device_ops
qec_ops
=
{
.
ndo_open
=
qe_open
,
.
ndo_stop
=
qe_close
,
.
ndo_start_xmit
=
qe_start_xmit
,
.
ndo_set_multicast_list
=
qe_set_multicast
,
.
ndo_tx_timeout
=
qe_tx_timeout
,
};
static
int
__devinit
qec_ether_init
(
struct
of_device
*
op
)
static
int
__devinit
qec_ether_init
(
struct
of_device
*
op
)
{
{
static
unsigned
version_printed
;
static
unsigned
version_printed
;
...
@@ -893,15 +901,11 @@ static int __devinit qec_ether_init(struct of_device *op)
...
@@ -893,15 +901,11 @@ static int __devinit qec_ether_init(struct of_device *op)
SET_NETDEV_DEV
(
dev
,
&
op
->
dev
);
SET_NETDEV_DEV
(
dev
,
&
op
->
dev
);
dev
->
open
=
qe_open
;
dev
->
stop
=
qe_close
;
dev
->
hard_start_xmit
=
qe_start_xmit
;
dev
->
set_multicast_list
=
qe_set_multicast
;
dev
->
tx_timeout
=
qe_tx_timeout
;
dev
->
watchdog_timeo
=
5
*
HZ
;
dev
->
watchdog_timeo
=
5
*
HZ
;
dev
->
irq
=
op
->
irqs
[
0
];
dev
->
irq
=
op
->
irqs
[
0
];
dev
->
dma
=
0
;
dev
->
dma
=
0
;
dev
->
ethtool_ops
=
&
qe_ethtool_ops
;
dev
->
ethtool_ops
=
&
qe_ethtool_ops
;
dev
->
netdev_ops
=
&
qec_ops
;
res
=
register_netdev
(
dev
);
res
=
register_netdev
(
dev
);
if
(
res
)
if
(
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