aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/marvell
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-24 00:41:55 -0500
committerDavid S. Miller <davem@davemloft.net>2011-11-24 00:41:55 -0500
commit6f39da2c5eab64921f92a9ff4a48f3d14a8db24c (patch)
tree0b08beae487be8218419e36df804ab18b2fea922 /drivers/net/ethernet/marvell
parent2cfa5a0471fef43fda0b7bd87e3a5e4dbadb7809 (diff)
net: mv643xx_eth: fix build error
Fix below build error: CC drivers/net/ethernet/marvell/mv643xx_eth.o drivers/net/ethernet/marvell/mv643xx_eth.c: In function 'mv643xx_eth_get_drvinfo': drivers/net/ethernet/marvell/mv643xx_eth.c:1505: error: 'info' undeclared (first use in this function) drivers/net/ethernet/marvell/mv643xx_eth.c:1505: error: (Each undeclared identifier is reported only once drivers/net/ethernet/marvell/mv643xx_eth.c:1505: error: for each function it appears in.) make[4]: *** [drivers/net/ethernet/marvell/mv643xx_eth.o] Error 1 Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell')
-rw-r--r--drivers/net/ethernet/marvell/mv643xx_eth.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c
index 43e3e6102149..e87847e32ddb 100644
--- a/drivers/net/ethernet/marvell/mv643xx_eth.c
+++ b/drivers/net/ethernet/marvell/mv643xx_eth.c
@@ -1502,11 +1502,12 @@ mv643xx_eth_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)
1502static void mv643xx_eth_get_drvinfo(struct net_device *dev, 1502static void mv643xx_eth_get_drvinfo(struct net_device *dev,
1503 struct ethtool_drvinfo *drvinfo) 1503 struct ethtool_drvinfo *drvinfo)
1504{ 1504{
1505 strlcpy(drvinfo->driver, mv643xx_eth_driver_name, sizeof(info->driver)); 1505 strlcpy(drvinfo->driver, mv643xx_eth_driver_name,
1506 sizeof(drvinfo->driver));
1506 strlcpy(drvinfo->version, mv643xx_eth_driver_version, 1507 strlcpy(drvinfo->version, mv643xx_eth_driver_version,
1507 sizeof(info->version)); 1508 sizeof(drvinfo->version));
1508 strlcpy(drvinfo->fw_version, "N/A", sizeof(info->fw_version)); 1509 strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
1509 strlcpy(drvinfo->bus_info, "platform", sizeof(info->bus_info)); 1510 strlcpy(drvinfo->bus_info, "platform", sizeof(drvinfo->bus_info));
1510 drvinfo->n_stats = ARRAY_SIZE(mv643xx_eth_stats); 1511 drvinfo->n_stats = ARRAY_SIZE(mv643xx_eth_stats);
1511} 1512}
1512 1513