diff options
Diffstat (limited to 'drivers/net/wan/hostess_sv11.c')
-rw-r--r-- | drivers/net/wan/hostess_sv11.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/net/wan/hostess_sv11.c b/drivers/net/wan/hostess_sv11.c index af54f0cf1b35..567d4f5062d6 100644 --- a/drivers/net/wan/hostess_sv11.c +++ b/drivers/net/wan/hostess_sv11.c | |||
@@ -173,6 +173,14 @@ static int hostess_attach(struct net_device *dev, unsigned short encoding, | |||
173 | * Description block for a Comtrol Hostess SV11 card | 173 | * Description block for a Comtrol Hostess SV11 card |
174 | */ | 174 | */ |
175 | 175 | ||
176 | static const struct net_device_ops hostess_ops = { | ||
177 | .ndo_open = hostess_open, | ||
178 | .ndo_stop = hostess_close, | ||
179 | .ndo_change_mtu = hdlc_change_mtu, | ||
180 | .ndo_start_xmit = hdlc_start_xmit, | ||
181 | .ndo_do_ioctl = hostess_ioctl, | ||
182 | }; | ||
183 | |||
176 | static struct z8530_dev *sv11_init(int iobase, int irq) | 184 | static struct z8530_dev *sv11_init(int iobase, int irq) |
177 | { | 185 | { |
178 | struct z8530_dev *sv; | 186 | struct z8530_dev *sv; |
@@ -267,9 +275,7 @@ static struct z8530_dev *sv11_init(int iobase, int irq) | |||
267 | 275 | ||
268 | dev_to_hdlc(netdev)->attach = hostess_attach; | 276 | dev_to_hdlc(netdev)->attach = hostess_attach; |
269 | dev_to_hdlc(netdev)->xmit = hostess_queue_xmit; | 277 | dev_to_hdlc(netdev)->xmit = hostess_queue_xmit; |
270 | netdev->open = hostess_open; | 278 | netdev->netdev_ops = &hostess_ops; |
271 | netdev->stop = hostess_close; | ||
272 | netdev->do_ioctl = hostess_ioctl; | ||
273 | netdev->base_addr = iobase; | 279 | netdev->base_addr = iobase; |
274 | netdev->irq = irq; | 280 | netdev->irq = irq; |
275 | 281 | ||