aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda/pxaficp_ir.c
diff options
context:
space:
mode:
authorAlexander Beregalov <a.beregalov@gmail.com>2009-04-15 08:52:41 -0400
committerDavid S. Miller <davem@davemloft.net>2009-04-16 05:20:11 -0400
commitc76ccd6a256004cca1127c9afb5474638fc78b74 (patch)
tree7a8da28e3795fda3b5924c5892b0f8ebec554f08 /drivers/net/irda/pxaficp_ir.c
parent602355a03508bf54dbf113234ef72d75080a492d (diff)
irda/pxaficp_ir: convert to net_device_ops
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda/pxaficp_ir.c')
-rw-r--r--drivers/net/irda/pxaficp_ir.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/net/irda/pxaficp_ir.c b/drivers/net/irda/pxaficp_ir.c
index e775338b525f..e8ced56b050f 100644
--- a/drivers/net/irda/pxaficp_ir.c
+++ b/drivers/net/irda/pxaficp_ir.c
@@ -797,6 +797,16 @@ static int pxa_irda_init_iobuf(iobuff_t *io, int size)
797 return io->head ? 0 : -ENOMEM; 797 return io->head ? 0 : -ENOMEM;
798} 798}
799 799
800static const struct net_device_ops pxa_irda_netdev_ops = {
801 .ndo_open = pxa_irda_start,
802 .ndo_stop = pxa_irda_stop,
803 .ndo_start_xmit = pxa_irda_hard_xmit,
804 .ndo_do_ioctl = pxa_irda_ioctl,
805 .ndo_change_mtu = eth_change_mtu,
806 .ndo_validate_addr = eth_validate_addr,
807 .ndo_set_mac_address = eth_mac_addr,
808};
809
800static int pxa_irda_probe(struct platform_device *pdev) 810static int pxa_irda_probe(struct platform_device *pdev)
801{ 811{
802 struct net_device *dev; 812 struct net_device *dev;
@@ -845,10 +855,7 @@ static int pxa_irda_probe(struct platform_device *pdev)
845 if (err) 855 if (err)
846 goto err_startup; 856 goto err_startup;
847 857
848 dev->hard_start_xmit = pxa_irda_hard_xmit; 858 dev->netdev_ops = &pxa_irda_netdev_ops;
849 dev->open = pxa_irda_start;
850 dev->stop = pxa_irda_stop;
851 dev->do_ioctl = pxa_irda_ioctl;
852 859
853 irda_init_max_qos_capabilies(&si->qos); 860 irda_init_max_qos_capabilies(&si->qos);
854 861