aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-01-07 20:56:54 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-07 20:56:54 -0500
commitd49d19c962c5f409a7dc771f185afd22cdb49edf (patch)
treea831c7e5ddaf3df5b0d4686d37c9eb2064d83bfd /drivers/net
parenta7d1de25dc2e823c741cf1ae86a59379ca5a6804 (diff)
sb1000: update to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/sb1000.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/drivers/net/sb1000.c b/drivers/net/sb1000.c
index be3025310e90..fc0e38bddeeb 100644
--- a/drivers/net/sb1000.c
+++ b/drivers/net/sb1000.c
@@ -134,6 +134,16 @@ static const struct pnp_device_id sb1000_pnp_ids[] = {
134}; 134};
135MODULE_DEVICE_TABLE(pnp, sb1000_pnp_ids); 135MODULE_DEVICE_TABLE(pnp, sb1000_pnp_ids);
136 136
137static 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
137static int 147static int
138sb1000_probe_one(struct pnp_dev *pdev, const struct pnp_device_id *id) 148sb1000_probe_one(struct pnp_dev *pdev, const struct pnp_device_id *id)
139{ 149{
@@ -192,11 +202,7 @@ sb1000_probe_one(struct pnp_dev *pdev, const struct pnp_device_id *id)
192 if (sb1000_debug > 0) 202 if (sb1000_debug > 0)
193 printk(KERN_NOTICE "%s", version); 203 printk(KERN_NOTICE "%s", version);
194 204
195 /* The SB1000-specific entries in the device structure. */ 205 dev->netdev_ops = &sb1000_netdev_ops;
196 dev->open = sb1000_open;
197 dev->do_ioctl = sb1000_dev_ioctl;
198 dev->hard_start_xmit = sb1000_start_xmit;
199 dev->stop = sb1000_close;
200 206
201 /* hardware address is 0:0:serial_number */ 207 /* hardware address is 0:0:serial_number */
202 dev->dev_addr[2] = serial_number >> 24 & 0xff; 208 dev->dev_addr[2] = serial_number >> 24 & 0xff;