diff options
Diffstat (limited to 'drivers/net/hplance.c')
-rw-r--r-- | drivers/net/hplance.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/drivers/net/hplance.c b/drivers/net/hplance.c index 2e802634d366..3e3528ade259 100644 --- a/drivers/net/hplance.c +++ b/drivers/net/hplance.c | |||
@@ -71,6 +71,19 @@ static struct dio_driver hplance_driver = { | |||
71 | .remove = __devexit_p(hplance_remove_one), | 71 | .remove = __devexit_p(hplance_remove_one), |
72 | }; | 72 | }; |
73 | 73 | ||
74 | static const struct net_device_ops hplance_netdev_ops = { | ||
75 | .ndo_open = hplance_open, | ||
76 | .ndo_stop = hplance_close, | ||
77 | .ndo_start_xmit = lance_start_xmit, | ||
78 | .ndo_set_multicast_list = lance_set_multicast, | ||
79 | .ndo_change_mtu = eth_change_mtu, | ||
80 | .ndo_validate_addr = eth_validate_addr, | ||
81 | .ndo_set_mac_address = eth_mac_addr, | ||
82 | #ifdef CONFIG_NET_POLL_CONTROLLER | ||
83 | .ndo_poll_controller = lance_poll, | ||
84 | #endif | ||
85 | }; | ||
86 | |||
74 | /* Find all the HP Lance boards and initialise them... */ | 87 | /* Find all the HP Lance boards and initialise them... */ |
75 | static int __devinit hplance_init_one(struct dio_dev *d, | 88 | static int __devinit hplance_init_one(struct dio_dev *d, |
76 | const struct dio_device_id *ent) | 89 | const struct dio_device_id *ent) |
@@ -135,13 +148,7 @@ static void __init hplance_init(struct net_device *dev, struct dio_dev *d) | |||
135 | 148 | ||
136 | /* Fill the dev fields */ | 149 | /* Fill the dev fields */ |
137 | dev->base_addr = va; | 150 | dev->base_addr = va; |
138 | dev->open = &hplance_open; | 151 | dev->netdev_ops = &hplance_netdev_ops; |
139 | dev->stop = &hplance_close; | ||
140 | #ifdef CONFIG_NET_POLL_CONTROLLER | ||
141 | dev->poll_controller = lance_poll; | ||
142 | #endif | ||
143 | dev->hard_start_xmit = &lance_start_xmit; | ||
144 | dev->set_multicast_list = &lance_set_multicast; | ||
145 | dev->dma = 0; | 152 | dev->dma = 0; |
146 | 153 | ||
147 | for (i=0; i<6; i++) { | 154 | for (i=0; i<6; i++) { |