Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
c7670718
Commit
c7670718
authored
Mar 23, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sunlance: Convert to net_device_ops.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
2199b87a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
drivers/net/sunlance.c
drivers/net/sunlance.c
+9
-5
No files found.
drivers/net/sunlance.c
View file @
c7670718
...
...
@@ -1311,6 +1311,14 @@ static const struct ethtool_ops sparc_lance_ethtool_ops = {
.
get_link
=
sparc_lance_get_link
,
};
static
const
struct
net_device_ops
sparc_lance_ops
=
{
.
ndo_open
=
lance_open
,
.
ndo_stop
=
lance_close
,
.
ndo_start_xmit
=
lance_start_xmit
,
.
ndo_set_multicast_list
=
lance_set_multicast
,
.
ndo_tx_timeout
=
lance_tx_timeout
,
};
static
int
__devinit
sparc_lance_probe_one
(
struct
of_device
*
op
,
struct
of_device
*
ledma
,
struct
of_device
*
lebuffer
)
...
...
@@ -1462,13 +1470,9 @@ no_link_test:
lp
->
dev
=
dev
;
SET_NETDEV_DEV
(
dev
,
&
op
->
dev
);
dev
->
open
=
&
lance_open
;
dev
->
stop
=
&
lance_close
;
dev
->
hard_start_xmit
=
&
lance_start_xmit
;
dev
->
tx_timeout
=
&
lance_tx_timeout
;
dev
->
watchdog_timeo
=
5
*
HZ
;
dev
->
set_multicast_list
=
&
lance_set_multicast
;
dev
->
ethtool_ops
=
&
sparc_lance_ethtool_ops
;
dev
->
netdev_ops
=
&
sparc_lance_ops
;
dev
->
irq
=
op
->
irqs
[
0
];
...
...
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