[PATCH] netdev/fec: fix compiling warning

Bryan Wu bryan.wu at canonical.com
Fri Mar 26 09:03:55 UTC 2010


BugLink: http://bugs.launchpad.net/bugs/457878

Missed to set .ndo_do_ioctl as fec_enet_ioctl, so will generate a compiling
warning due to nobody uses fec_enet_ioctl. This patch fixed that.

Signed-off-by: Bryan Wu <bryan.wu at canonical.com>
---
 drivers/net/fec.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/fec.c b/drivers/net/fec.c
index 62fc74d..9d99359 100644
--- a/drivers/net/fec.c
+++ b/drivers/net/fec.c
@@ -1066,6 +1066,7 @@ static const struct net_device_ops fec_netdev_ops = {
 	.ndo_validate_addr	= eth_validate_addr,
 	.ndo_tx_timeout		= fec_timeout,
 	.ndo_set_mac_address	= fec_set_mac_address,
+	.ndo_do_ioctl		= fec_enet_ioctl,
 };
 
  /*
-- 
1.7.0.1





More information about the kernel-team mailing list