]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
net: phy: fix warnings with W=1
authorJeroen Hofstee <jeroen@myspectrum.nl>
Wed, 8 Oct 2014 20:57:26 +0000 (22:57 +0200)
committerTom Rini <trini@ti.com>
Sat, 25 Oct 2014 11:01:59 +0000 (07:01 -0400)
get_phy_id is marked weak but has no protype nor a
strong version, just make it static. Use __weak for
board_phy_config.

Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
drivers/net/phy/phy.c

index 1d6c14f2ade7497bc7b2ded23bffce21f250a821..f1ace3c8421004d6ba0b7f2d61051a215c25372b 100644 (file)
@@ -575,7 +575,7 @@ static struct phy_device *phy_device_create(struct mii_dev *bus, int addr,
  * Description: Reads the ID registers of the PHY at @addr on the
  *   @bus, stores it in @phy_id and returns zero on success.
  */
-int __weak get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id)
+static int get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id)
 {
        int phy_reg;
 
@@ -785,16 +785,13 @@ int phy_startup(struct phy_device *phydev)
        return 0;
 }
 
-static int __board_phy_config(struct phy_device *phydev)
+__weak int board_phy_config(struct phy_device *phydev)
 {
        if (phydev->drv->config)
                return phydev->drv->config(phydev);
        return 0;
 }
 
-int board_phy_config(struct phy_device *phydev)
-       __attribute__((weak, alias("__board_phy_config")));
-
 int phy_config(struct phy_device *phydev)
 {
        /* Invoke an optional board-specific helper */