From: Stefan Bigler Date: Mon, 26 Mar 2012 00:02:13 +0000 (+0000) Subject: mvgbe: remove warning for unused methods X-Git-Tag: v2012.04-rc2~8^2~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cc79697c963548f27bceece9c2e8c24f5703c50a;p=u-boot 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 Signed-off-by: Valentin Longchamp Acked-by: Prafulla Wadaskar --- diff --git a/drivers/net/mvgbe.c b/drivers/net/mvgbe.c index 477bf5c132..dcc1547c1c 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)