Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sb1000: update to net_device_ops

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Stephen Hemminger and committed by
David S. Miller
d49d19c9 a7d1de25

+11 -5
+11 -5
drivers/net/sb1000.c
··· 134 134 }; 135 135 MODULE_DEVICE_TABLE(pnp, sb1000_pnp_ids); 136 136 137 + static const struct net_device_ops sb1000_netdev_ops = { 138 + .ndo_open = sb1000_open, 139 + .ndo_start_xmit = sb1000_start_xmit, 140 + .ndo_do_ioctl = sb1000_dev_ioctl, 141 + .ndo_stop = sb1000_close, 142 + .ndo_change_mtu = eth_change_mtu, 143 + .ndo_set_mac_address = eth_mac_addr, 144 + .ndo_validate_addr = eth_validate_addr, 145 + }; 146 + 137 147 static int 138 148 sb1000_probe_one(struct pnp_dev *pdev, const struct pnp_device_id *id) 139 149 { ··· 202 192 if (sb1000_debug > 0) 203 193 printk(KERN_NOTICE "%s", version); 204 194 205 - /* The SB1000-specific entries in the device structure. */ 206 - dev->open = sb1000_open; 207 - dev->do_ioctl = sb1000_dev_ioctl; 208 - dev->hard_start_xmit = sb1000_start_xmit; 209 - dev->stop = sb1000_close; 195 + dev->netdev_ops = &sb1000_netdev_ops; 210 196 211 197 /* hardware address is 0:0:serial_number */ 212 198 dev->dev_addr[2] = serial_number >> 24 & 0xff;