bgmac: Update fixed_phy_register()
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 2 Sep 2015 16:25:59 +0000 (13:25 -0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Sep 2015 18:39:58 +0000 (11:39 -0700)
Commit a5597008dbc2 ("phy: fixed_phy: Add gpio to determine link up/down.")
added a new argument to fixed_phy_register(), but missed to update bgmac
driver, causing the following build failure:

drivers/net/ethernet/broadcom/bgmac.c:1450:2: error: too few arguments to function 'fixed_phy_register'

Add the missing argument.

Reported-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c

index d043746e2fc56ebe68c0e00949e09d0c3a6e77c2..28f7610b03febf79e11056308f3a4e3695274bf6 100644 (file)
@@ -1447,7 +1447,7 @@ static int bgmac_fixed_phy_register(struct bgmac *bgmac)
        struct phy_device *phy_dev;
        int err;
 
-       phy_dev = fixed_phy_register(PHY_POLL, &fphy_status, NULL);
+       phy_dev = fixed_phy_register(PHY_POLL, &fphy_status, -1, NULL);
        if (!phy_dev || IS_ERR(phy_dev)) {
                bgmac_err(bgmac, "Failed to register fixed PHY device\n");
                return -ENODEV;