mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-16 01:54:00 +00:00
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>
This commit is contained in:
parent
2ed22bc294
commit
239dc572b8
@ -89,6 +89,7 @@ EXPORT_SYMBOL(fixed_mdio_set_link_update);
|
|||||||
/*-----------------------------------------------------------------------------
|
/*-----------------------------------------------------------------------------
|
||||||
* This is used for updating internal mii regs from the status
|
* This is used for updating internal mii regs from the status
|
||||||
*-----------------------------------------------------------------------------*/
|
*-----------------------------------------------------------------------------*/
|
||||||
|
#if defined(CONFIG_FIXED_MII_100_FDX) || defined(CONFIG_FIXED_MII_10_FDX)
|
||||||
static int fixed_mdio_update_regs(struct fixed_info *fixed)
|
static int fixed_mdio_update_regs(struct fixed_info *fixed)
|
||||||
{
|
{
|
||||||
u16 *regs = fixed->regs;
|
u16 *regs = fixed->regs;
|
||||||
@ -165,6 +166,7 @@ static int fixed_mii_reset(struct mii_bus *bus)
|
|||||||
/*nothing here - no way/need to reset it*/
|
/*nothing here - no way/need to reset it*/
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int fixed_config_aneg(struct phy_device *phydev)
|
static int fixed_config_aneg(struct phy_device *phydev)
|
||||||
{
|
{
|
||||||
@ -194,6 +196,7 @@ static struct phy_driver fixed_mdio_driver = {
|
|||||||
* number is used to create multiple fixed PHYs, so that several devices can
|
* number is used to create multiple fixed PHYs, so that several devices can
|
||||||
* utilize them simultaneously.
|
* utilize them simultaneously.
|
||||||
*-----------------------------------------------------------------------------*/
|
*-----------------------------------------------------------------------------*/
|
||||||
|
#if defined(CONFIG_FIXED_MII_100_FDX) || defined(CONFIG_FIXED_MII_10_FDX)
|
||||||
static int fixed_mdio_register_device(int number, int speed, int duplex)
|
static int fixed_mdio_register_device(int number, int speed, int duplex)
|
||||||
{
|
{
|
||||||
struct mii_bus *new_bus;
|
struct mii_bus *new_bus;
|
||||||
@ -301,6 +304,7 @@ device_create_fail:
|
|||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
MODULE_DESCRIPTION("Fixed PHY device & driver for PAL");
|
MODULE_DESCRIPTION("Fixed PHY device & driver for PAL");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user