diff options
author | Frank Blaschka <frank.blaschka@de.ibm.com> | 2009-01-08 22:43:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 17:02:43 -0500 |
commit | 4edd73b5cf466ab2c9d406fd6768cb3203abfbe5 (patch) | |
tree | e41690ee16eadeaa0b47c05bcd5960dbca05b574 | |
parent | 69b3aa609cab34928931b86632316d065ba17ba3 (diff) |
netiucv: convert to net_device_ops
netiucv convert to net_device_ops.
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/s390/net/netiucv.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/s390/net/netiucv.c b/drivers/s390/net/netiucv.c index 930e2fc2a011..1ba4509435f8 100644 --- a/drivers/s390/net/netiucv.c +++ b/drivers/s390/net/netiucv.c | |||
@@ -1876,20 +1876,24 @@ static void netiucv_free_netdevice(struct net_device *dev) | |||
1876 | /** | 1876 | /** |
1877 | * Initialize a net device. (Called from kernel in alloc_netdev()) | 1877 | * Initialize a net device. (Called from kernel in alloc_netdev()) |
1878 | */ | 1878 | */ |
1879 | static const struct net_device_ops netiucv_netdev_ops = { | ||
1880 | .ndo_open = netiucv_open, | ||
1881 | .ndo_stop = netiucv_close, | ||
1882 | .ndo_get_stats = netiucv_stats, | ||
1883 | .ndo_start_xmit = netiucv_tx, | ||
1884 | .ndo_change_mtu = netiucv_change_mtu, | ||
1885 | }; | ||
1886 | |||
1879 | static void netiucv_setup_netdevice(struct net_device *dev) | 1887 | static void netiucv_setup_netdevice(struct net_device *dev) |
1880 | { | 1888 | { |
1881 | dev->mtu = NETIUCV_MTU_DEFAULT; | 1889 | dev->mtu = NETIUCV_MTU_DEFAULT; |
1882 | dev->hard_start_xmit = netiucv_tx; | ||
1883 | dev->open = netiucv_open; | ||
1884 | dev->stop = netiucv_close; | ||
1885 | dev->get_stats = netiucv_stats; | ||
1886 | dev->change_mtu = netiucv_change_mtu; | ||
1887 | dev->destructor = netiucv_free_netdevice; | 1890 | dev->destructor = netiucv_free_netdevice; |
1888 | dev->hard_header_len = NETIUCV_HDRLEN; | 1891 | dev->hard_header_len = NETIUCV_HDRLEN; |
1889 | dev->addr_len = 0; | 1892 | dev->addr_len = 0; |
1890 | dev->type = ARPHRD_SLIP; | 1893 | dev->type = ARPHRD_SLIP; |
1891 | dev->tx_queue_len = NETIUCV_QUEUELEN_DEFAULT; | 1894 | dev->tx_queue_len = NETIUCV_QUEUELEN_DEFAULT; |
1892 | dev->flags = IFF_POINTOPOINT | IFF_NOARP; | 1895 | dev->flags = IFF_POINTOPOINT | IFF_NOARP; |
1896 | dev->netdev_ops = &netiucv_netdev_ops; | ||
1893 | } | 1897 | } |
1894 | 1898 | ||
1895 | /** | 1899 | /** |