fix compiler warning in fixed.c

Correct the following compiler warning (and warnings resulting from
the correction):
warning: 'fixed_mdio_register_device' defined but not used

Signed-off-by: Denver Gingerich <denver@ossguy.com>
Cc: Vitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by

Denver Gingerich and committed by
Jeff Garzik
239dc572 2ed22bc2

+4
+4
drivers/net/phy/fixed.c
··· 89 89 /*----------------------------------------------------------------------------- 90 90 * This is used for updating internal mii regs from the status 91 91 *-----------------------------------------------------------------------------*/ 92 + #if defined(CONFIG_FIXED_MII_100_FDX) || defined(CONFIG_FIXED_MII_10_FDX) 92 93 static int fixed_mdio_update_regs(struct fixed_info *fixed) 93 94 { 94 95 u16 *regs = fixed->regs; ··· 166 165 /*nothing here - no way/need to reset it*/ 167 166 return 0; 168 167 } 168 + #endif 169 169 170 170 static int fixed_config_aneg(struct phy_device *phydev) 171 171 { ··· 196 194 * number is used to create multiple fixed PHYs, so that several devices can 197 195 * utilize them simultaneously. 198 196 *-----------------------------------------------------------------------------*/ 197 + #if defined(CONFIG_FIXED_MII_100_FDX) || defined(CONFIG_FIXED_MII_10_FDX) 199 198 static int fixed_mdio_register_device(int number, int speed, int duplex) 200 199 { 201 200 struct mii_bus *new_bus; ··· 304 301 305 302 return err; 306 303 } 304 + #endif 307 305 308 306 309 307 MODULE_DESCRIPTION("Fixed PHY device & driver for PAL");