Commit c76ccd6a authored by Alexander Beregalov's avatar Alexander Beregalov Committed by David S. Miller

irda/pxaficp_ir: convert to net_device_ops

Signed-off-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 602355a0
...@@ -797,6 +797,16 @@ static int pxa_irda_init_iobuf(iobuff_t *io, int size) ...@@ -797,6 +797,16 @@ static int pxa_irda_init_iobuf(iobuff_t *io, int size)
return io->head ? 0 : -ENOMEM; return io->head ? 0 : -ENOMEM;
} }
static const struct net_device_ops pxa_irda_netdev_ops = {
.ndo_open = pxa_irda_start,
.ndo_stop = pxa_irda_stop,
.ndo_start_xmit = pxa_irda_hard_xmit,
.ndo_do_ioctl = pxa_irda_ioctl,
.ndo_change_mtu = eth_change_mtu,
.ndo_validate_addr = eth_validate_addr,
.ndo_set_mac_address = eth_mac_addr,
};
static int pxa_irda_probe(struct platform_device *pdev) static int pxa_irda_probe(struct platform_device *pdev)
{ {
struct net_device *dev; struct net_device *dev;
...@@ -845,10 +855,7 @@ static int pxa_irda_probe(struct platform_device *pdev) ...@@ -845,10 +855,7 @@ static int pxa_irda_probe(struct platform_device *pdev)
if (err) if (err)
goto err_startup; goto err_startup;
dev->hard_start_xmit = pxa_irda_hard_xmit; dev->netdev_ops = &pxa_irda_netdev_ops;
dev->open = pxa_irda_start;
dev->stop = pxa_irda_stop;
dev->do_ioctl = pxa_irda_ioctl;
irda_init_max_qos_capabilies(&si->qos); irda_init_max_qos_capabilies(&si->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