diff options
Diffstat (limited to 'drivers/net/irda')
-rw-r--r-- | drivers/net/irda/pxaficp_ir.c | 15 |
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 | ||
800 | static 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 | |||
800 | static int pxa_irda_probe(struct platform_device *pdev) | 810 | static 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 | ||