diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2009-04-15 08:52:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-16 05:20:12 -0400 |
commit | a1de966682551debbe690672e760487cc555c05f (patch) | |
tree | c1032501d3785d01278f123cfb2755fcaa7f36e6 /drivers/net/irda | |
parent | c76ccd6a256004cca1127c9afb5474638fc78b74 (diff) |
irda/sa1100_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')
-rw-r--r-- | drivers/net/irda/sa1100_ir.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/net/irda/sa1100_ir.c b/drivers/net/irda/sa1100_ir.c index 7a2b003954ca..44a748e72332 100644 --- a/drivers/net/irda/sa1100_ir.c +++ b/drivers/net/irda/sa1100_ir.c | |||
@@ -875,6 +875,16 @@ static int sa1100_irda_init_iobuf(iobuff_t *io, int size) | |||
875 | return io->head ? 0 : -ENOMEM; | 875 | return io->head ? 0 : -ENOMEM; |
876 | } | 876 | } |
877 | 877 | ||
878 | static const struct net_device_ops sa1100_irda_netdev_ops = { | ||
879 | .ndo_open = sa1100_irda_start, | ||
880 | .ndo_stop = sa1100_irda_stop, | ||
881 | .ndo_start_xmit = sa1100_irda_hard_xmit, | ||
882 | .ndo_do_ioctl = sa1100_irda_ioctl, | ||
883 | .ndo_change_mtu = eth_change_mtu, | ||
884 | .ndo_validate_addr = eth_validate_addr, | ||
885 | .ndo_set_mac_address = eth_mac_addr, | ||
886 | }; | ||
887 | |||
878 | static int sa1100_irda_probe(struct platform_device *pdev) | 888 | static int sa1100_irda_probe(struct platform_device *pdev) |
879 | { | 889 | { |
880 | struct net_device *dev; | 890 | struct net_device *dev; |
@@ -913,11 +923,8 @@ static int sa1100_irda_probe(struct platform_device *pdev) | |||
913 | if (err) | 923 | if (err) |
914 | goto err_mem_5; | 924 | goto err_mem_5; |
915 | 925 | ||
916 | dev->hard_start_xmit = sa1100_irda_hard_xmit; | 926 | dev->netdev_ops = &sa1100_irda_netdev_ops; |
917 | dev->open = sa1100_irda_start; | 927 | dev->ir = IRQ_Ser2ICP; |
918 | dev->stop = sa1100_irda_stop; | ||
919 | dev->do_ioctl = sa1100_irda_ioctl; | ||
920 | dev->irq = IRQ_Ser2ICP; | ||
921 | 928 | ||
922 | irda_init_max_qos_capabilies(&si->qos); | 929 | irda_init_max_qos_capabilies(&si->qos); |
923 | 930 | ||