diff options
author | Frank Blaschka <frank.blaschka@de.ibm.com> | 2009-01-08 22:43:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 17:02:44 -0500 |
commit | 2171dc1815fcc5cc08d227155d65bb268070f6a5 (patch) | |
tree | 2a27209c46b03459099ebd161ed7ebda4c71ed14 /drivers/s390/net/claw.c | |
parent | 4edd73b5cf466ab2c9d406fd6768cb3203abfbe5 (diff) |
claw: convert to net_device_ops
claw convert to net_device_ops.
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/claw.c')
-rw-r--r-- | drivers/s390/net/claw.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/s390/net/claw.c b/drivers/s390/net/claw.c index f5e618562c5f..3cb387f45b61 100644 --- a/drivers/s390/net/claw.c +++ b/drivers/s390/net/claw.c | |||
@@ -2816,22 +2816,26 @@ claw_free_netdevice(struct net_device * dev, int free_dev) | |||
2816 | * Initialize everything of the net device except the name and the | 2816 | * Initialize everything of the net device except the name and the |
2817 | * channel structs. | 2817 | * channel structs. |
2818 | */ | 2818 | */ |
2819 | static const struct net_device_ops claw_netdev_ops = { | ||
2820 | .ndo_open = claw_open, | ||
2821 | .ndo_stop = claw_release, | ||
2822 | .ndo_get_stats = claw_stats, | ||
2823 | .ndo_start_xmit = claw_tx, | ||
2824 | .ndo_change_mtu = claw_change_mtu, | ||
2825 | }; | ||
2826 | |||
2819 | static void | 2827 | static void |
2820 | claw_init_netdevice(struct net_device * dev) | 2828 | claw_init_netdevice(struct net_device * dev) |
2821 | { | 2829 | { |
2822 | CLAW_DBF_TEXT(2, setup, "init_dev"); | 2830 | CLAW_DBF_TEXT(2, setup, "init_dev"); |
2823 | CLAW_DBF_TEXT_(2, setup, "%s", dev->name); | 2831 | CLAW_DBF_TEXT_(2, setup, "%s", dev->name); |
2824 | dev->mtu = CLAW_DEFAULT_MTU_SIZE; | 2832 | dev->mtu = CLAW_DEFAULT_MTU_SIZE; |
2825 | dev->hard_start_xmit = claw_tx; | ||
2826 | dev->open = claw_open; | ||
2827 | dev->stop = claw_release; | ||
2828 | dev->get_stats = claw_stats; | ||
2829 | dev->change_mtu = claw_change_mtu; | ||
2830 | dev->hard_header_len = 0; | 2833 | dev->hard_header_len = 0; |
2831 | dev->addr_len = 0; | 2834 | dev->addr_len = 0; |
2832 | dev->type = ARPHRD_SLIP; | 2835 | dev->type = ARPHRD_SLIP; |
2833 | dev->tx_queue_len = 1300; | 2836 | dev->tx_queue_len = 1300; |
2834 | dev->flags = IFF_POINTOPOINT | IFF_NOARP; | 2837 | dev->flags = IFF_POINTOPOINT | IFF_NOARP; |
2838 | dev->netdev_ops = &claw_netdev_ops; | ||
2835 | CLAW_DBF_TEXT(2, setup, "initok"); | 2839 | CLAW_DBF_TEXT(2, setup, "initok"); |
2836 | return; | 2840 | return; |
2837 | } | 2841 | } |