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
adaa0db1
Commit
adaa0db1
authored
Mar 23, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
myri_sbus: Convert to net_device_ops.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
268ed76d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
drivers/net/myri_sbus.c
drivers/net/myri_sbus.c
+10
-6
No files found.
drivers/net/myri_sbus.c
View file @
adaa0db1
...
...
@@ -896,6 +896,15 @@ static const struct header_ops myri_header_ops = {
.
cache_update
=
myri_header_cache_update
,
};
static
const
struct
net_device_ops
myri_ops
=
{
.
ndo_open
=
myri_open
,
.
ndo_stop
=
myri_close
,
.
ndo_start_xmit
=
myri_start_xmit
,
.
ndo_set_multicast_list
=
myri_set_multicast
,
.
ndo_tx_timeout
=
myri_tx_timeout
,
.
ndo_change_mtu
=
myri_change_mtu
,
};
static
int
__devinit
myri_sbus_probe
(
struct
of_device
*
op
,
const
struct
of_device_id
*
match
)
{
struct
device_node
*
dp
=
op
->
node
;
...
...
@@ -1048,13 +1057,9 @@ static int __devinit myri_sbus_probe(struct of_device *op, const struct of_devic
sbus_writel
((
1
<<
i
),
mp
->
cregs
+
MYRICTRL_IRQLVL
);
mp
->
dev
=
dev
;
dev
->
open
=
&
myri_open
;
dev
->
stop
=
&
myri_close
;
dev
->
hard_start_xmit
=
&
myri_start_xmit
;
dev
->
tx_timeout
=
&
myri_tx_timeout
;
dev
->
watchdog_timeo
=
5
*
HZ
;
dev
->
set_multicast_list
=
&
myri_set_multicast
;
dev
->
irq
=
op
->
irqs
[
0
];
dev
->
netdev_ops
=
&
myri_ops
;
/* Register interrupt handler now. */
DET
((
"Requesting MYRIcom IRQ line.
\n
"
));
...
...
@@ -1065,7 +1070,6 @@ static int __devinit myri_sbus_probe(struct of_device *op, const struct of_devic
}
dev
->
mtu
=
MYRINET_MTU
;
dev
->
change_mtu
=
myri_change_mtu
;
dev
->
header_ops
=
&
myri_header_ops
;
dev
->
hard_header_len
=
(
ETH_HLEN
+
MYRI_PAD_LEN
);
...
...
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