diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-11-20 23:29:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-20 23:29:48 -0500 |
commit | 145186a39570244aead77dc2efc559e5cac90548 (patch) | |
tree | fbb9797afeccbc27578d43fcc51737e273f10027 /drivers/net/skfp | |
parent | 007c3838d9fdcc8fdaea87e4879ec3759f016ed5 (diff) |
fddi: convert to new network device ops
Similar to ethernet. Convert infrastructure and the one lone FDDI
driver (for the one lone user of that hardware??). Compile tested only.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/skfp')
-rw-r--r-- | drivers/net/skfp/skfddi.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/drivers/net/skfp/skfddi.c b/drivers/net/skfp/skfddi.c index 282bb47deccc..7fbd4f84f272 100644 --- a/drivers/net/skfp/skfddi.c +++ b/drivers/net/skfp/skfddi.c | |||
@@ -168,6 +168,17 @@ static int num_boards; /* total number of adapters configured */ | |||
168 | #define PRINTK(s, args...) | 168 | #define PRINTK(s, args...) |
169 | #endif // DRIVERDEBUG | 169 | #endif // DRIVERDEBUG |
170 | 170 | ||
171 | static const struct net_device_ops skfp_netdev_ops = { | ||
172 | .ndo_open = skfp_open, | ||
173 | .ndo_stop = skfp_close, | ||
174 | .ndo_start_xmit = skfp_send_pkt, | ||
175 | .ndo_get_stats = skfp_ctl_get_stats, | ||
176 | .ndo_change_mtu = fddi_change_mtu, | ||
177 | .ndo_set_multicast_list = skfp_ctl_set_multicast_list, | ||
178 | .ndo_set_mac_address = skfp_ctl_set_mac_address, | ||
179 | .ndo_do_ioctl = skfp_ioctl, | ||
180 | }; | ||
181 | |||
171 | /* | 182 | /* |
172 | * ================= | 183 | * ================= |
173 | * = skfp_init_one = | 184 | * = skfp_init_one = |
@@ -253,13 +264,7 @@ static int skfp_init_one(struct pci_dev *pdev, | |||
253 | } | 264 | } |
254 | 265 | ||
255 | dev->irq = pdev->irq; | 266 | dev->irq = pdev->irq; |
256 | dev->get_stats = &skfp_ctl_get_stats; | 267 | dev->netdev_ops = &skfp_netdev_ops; |
257 | dev->open = &skfp_open; | ||
258 | dev->stop = &skfp_close; | ||
259 | dev->hard_start_xmit = &skfp_send_pkt; | ||
260 | dev->set_multicast_list = &skfp_ctl_set_multicast_list; | ||
261 | dev->set_mac_address = &skfp_ctl_set_mac_address; | ||
262 | dev->do_ioctl = &skfp_ioctl; | ||
263 | 268 | ||
264 | SET_NETDEV_DEV(dev, &pdev->dev); | 269 | SET_NETDEV_DEV(dev, &pdev->dev); |
265 | 270 | ||