summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStefan Bigler <stefan.bigler@keymile.com>2012-03-26 00:02:13 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-04-03 11:17:52 -0500
commitcc79697c963548f27bceece9c2e8c24f5703c50a (patch)
tree0aabee38ba562faff0e3021b6d7bd3989ac1405c /drivers
parentc008b6f6dd6b8965e9a7654ffbce75bb9ff7a3b5 (diff)
downloadu-boot-imx-cc79697c963548f27bceece9c2e8c24f5703c50a.zip
u-boot-imx-cc79697c963548f27bceece9c2e8c24f5703c50a.tar.gz
u-boot-imx-cc79697c963548f27bceece9c2e8c24f5703c50a.tar.bz2
mvgbe: remove warning for unused methods
Some baords may use the GBE interface but they have no phy connected to the interface and a direct MAC/MAC interface. For them we need to get rid of compiler warnings. Signed-off-by: Stefan Bigler <stefan.bigler@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/mvgbe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/mvgbe.c b/drivers/net/mvgbe.c
index 477bf5c..dcc1547 100644
--- a/drivers/net/mvgbe.c
+++ b/drivers/net/mvgbe.c
@@ -52,6 +52,7 @@ DECLARE_GLOBAL_DATA_PTR;
#define MV_PHY_ADR_REQUEST 0xee
#define MVGBE_SMI_REG (((struct mvgbe_registers *)MVGBE0_BASE)->smi)
+#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
/*
* smi_reg_read - miiphy_read callback function.
*
@@ -181,6 +182,7 @@ static int smi_reg_write(const char *devname, u8 phy_adr, u8 reg_ofs, u16 data)
return 0;
}
+#endif
/* Stop and checks all queues */
static void stop_queue(u32 * qreg)