Commit d51e9b0d authored by Graf Yang's avatar Graf Yang Committed by David S. Miller

net/irda: convert bfin_sir to net_device_ops

Signed-off-by: default avatarGraf Yang <graf.yang@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1802571b
...@@ -677,6 +677,14 @@ static int bfin_sir_init_iobuf(iobuff_t *io, int size) ...@@ -677,6 +677,14 @@ static int bfin_sir_init_iobuf(iobuff_t *io, int size)
return 0; return 0;
} }
static const struct net_device_ops bfin_sir_ndo = {
.ndo_open = bfin_sir_open,
.ndo_stop = bfin_sir_stop,
.ndo_start_xmit = bfin_sir_hard_xmit,
.ndo_do_ioctl = bfin_sir_ioctl,
.ndo_get_stats = bfin_sir_stats,
};
static int __devinit bfin_sir_probe(struct platform_device *pdev) static int __devinit bfin_sir_probe(struct platform_device *pdev)
{ {
struct net_device *dev; struct net_device *dev;
...@@ -718,11 +726,7 @@ static int __devinit bfin_sir_probe(struct platform_device *pdev) ...@@ -718,11 +726,7 @@ static int __devinit bfin_sir_probe(struct platform_device *pdev)
if (err) if (err)
goto err_mem_3; goto err_mem_3;
dev->hard_start_xmit = bfin_sir_hard_xmit; dev->netdev_ops = &bfin_sir_ndo;
dev->open = bfin_sir_open;
dev->stop = bfin_sir_stop;
dev->do_ioctl = bfin_sir_ioctl;
dev->get_stats = bfin_sir_stats;
dev->irq = sir_port->irq; dev->irq = sir_port->irq;
irda_init_max_qos_capabilies(&self->qos); irda_init_max_qos_capabilies(&self->qos);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment