diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-03-28 16:29:51 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-03-28 16:29:51 -0400 |
commit | ed40d0c472b136682b2fcba05f89762859c7374f (patch) | |
tree | 076b83a26bcd63d6158463735dd34c10bbc591dc /drivers/net/sunqe.c | |
parent | 9e495834e59ca9b29f1a1f63b9f5533bb022ac49 (diff) | |
parent | 5d80f8e5a9dc9c9a94d4aeaa567e219a808b8a4a (diff) |
Merge branch 'origin' into devel
Conflicts:
sound/soc/pxa/pxa2xx-i2s.c
Diffstat (limited to 'drivers/net/sunqe.c')
-rw-r--r-- | drivers/net/sunqe.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/net/sunqe.c b/drivers/net/sunqe.c index fe0c3f244562..c6ec61e0accf 100644 --- a/drivers/net/sunqe.c +++ b/drivers/net/sunqe.c | |||
@@ -829,6 +829,17 @@ fail: | |||
829 | return NULL; | 829 | return NULL; |
830 | } | 830 | } |
831 | 831 | ||
832 | static const struct net_device_ops qec_ops = { | ||
833 | .ndo_open = qe_open, | ||
834 | .ndo_stop = qe_close, | ||
835 | .ndo_start_xmit = qe_start_xmit, | ||
836 | .ndo_set_multicast_list = qe_set_multicast, | ||
837 | .ndo_tx_timeout = qe_tx_timeout, | ||
838 | .ndo_change_mtu = eth_change_mtu, | ||
839 | .ndo_set_mac_address = eth_mac_addr, | ||
840 | .ndo_validate_addr = eth_validate_addr, | ||
841 | }; | ||
842 | |||
832 | static int __devinit qec_ether_init(struct of_device *op) | 843 | static int __devinit qec_ether_init(struct of_device *op) |
833 | { | 844 | { |
834 | static unsigned version_printed; | 845 | static unsigned version_printed; |
@@ -893,15 +904,11 @@ static int __devinit qec_ether_init(struct of_device *op) | |||
893 | 904 | ||
894 | SET_NETDEV_DEV(dev, &op->dev); | 905 | SET_NETDEV_DEV(dev, &op->dev); |
895 | 906 | ||
896 | dev->open = qe_open; | ||
897 | dev->stop = qe_close; | ||
898 | dev->hard_start_xmit = qe_start_xmit; | ||
899 | dev->set_multicast_list = qe_set_multicast; | ||
900 | dev->tx_timeout = qe_tx_timeout; | ||
901 | dev->watchdog_timeo = 5*HZ; | 907 | dev->watchdog_timeo = 5*HZ; |
902 | dev->irq = op->irqs[0]; | 908 | dev->irq = op->irqs[0]; |
903 | dev->dma = 0; | 909 | dev->dma = 0; |
904 | dev->ethtool_ops = &qe_ethtool_ops; | 910 | dev->ethtool_ops = &qe_ethtool_ops; |
911 | dev->netdev_ops = &qec_ops; | ||
905 | 912 | ||
906 | res = register_netdev(dev); | 913 | res = register_netdev(dev); |
907 | if (res) | 914 | if (res) |