* [PATCH] etherh: build fix for net-next
[not found] ` <4934B7B5.9010004@oracle.com>
@ 2008-12-02 15:58 ` Stephen Hemminger
2008-12-02 22:52 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2008-12-02 15:58 UTC (permalink / raw)
To: Randy Dunlap, David Miller, Jeff Garzik; +Cc: Russell King, netdev
Fix build of ARM etherh driver with new net_device_ops.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
--- a/drivers/net/arm/etherh.c 2008-12-01 15:24:01.000000000 -0800
+++ b/drivers/net/arm/etherh.c 2008-12-01 15:27:32.000000000 -0800
@@ -637,6 +637,21 @@ static const struct ethtool_ops etherh_e
.get_drvinfo = etherh_get_drvinfo,
};
+static const struct net_device_ops etherh_netdev_ops = {
+ .ndo_open = etherh_open,
+ .ndo_stop = etherh_close,
+ .ndo_set_config = etherh_set_config,
+ .ndo_start_xmit = ei_start_xmit,
+ .ndo_tx_timeout = ei_tx_timeout,
+ .ndo_get_stats = ei_get_stats,
+ .ndo_set_multicast_list = ei_set_multicast_list,
+ .ndo_validate_addr = eth_validate_addr,
+ .ndo_change_mtu = eth_change_mtu,
+#ifdef CONFIG_NET_POLL_CONTROLLER
+ .ndo_poll_controller = ei_poll,
+#endif
+};
+
static u32 etherh_regoffsets[16];
static u32 etherm_regoffsets[16];
@@ -663,9 +678,7 @@ etherh_probe(struct expansion_card *ec,
SET_NETDEV_DEV(dev, &ec->dev);
- dev->open = etherh_open;
- dev->stop = etherh_close;
- dev->set_config = etherh_set_config;
+ dev->netdev_ops = ðerh_netdev_ops;
dev->irq = ec->irq;
dev->ethtool_ops = ðerh_ethtool_ops;
--- a/drivers/net/arm/Makefile 2008-12-02 07:48:13.000000000 -0800
+++ b/drivers/net/arm/Makefile 2008-12-02 07:48:56.000000000 -0800
@@ -4,7 +4,7 @@
#
obj-$(CONFIG_ARM_AM79C961A) += am79c961a.o
-obj-$(CONFIG_ARM_ETHERH) += etherh.o
+obj-$(CONFIG_ARM_ETHERH) += etherh.o ../8390.o
obj-$(CONFIG_ARM_ETHER3) += ether3.o
obj-$(CONFIG_ARM_ETHER1) += ether1.o
obj-$(CONFIG_ARM_AT91_ETHER) += at91_ether.o
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] etherh: build fix for net-next
2008-12-02 15:58 ` [PATCH] etherh: build fix for net-next Stephen Hemminger
@ 2008-12-02 22:52 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-12-02 22:52 UTC (permalink / raw)
To: shemminger; +Cc: randy.dunlap, jgarzik, rmk, netdev
From: Stephen Hemminger <shemminger@vyatta.com>
Date: Tue, 2 Dec 2008 07:58:50 -0800
> Fix build of ARM etherh driver with new net_device_ops.
>
> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Applied, thanks for fixing this Stephen.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-02 22:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20081201212931.GB18511@flint.arm.linux.org.uk>
[not found] ` <20081201153030.235a8c84@extreme>
[not found] ` <4934B7B5.9010004@oracle.com>
2008-12-02 15:58 ` [PATCH] etherh: build fix for net-next Stephen Hemminger
2008-12-02 22:52 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).