From addb6f7394eaa74093e6e12f32b6a85dfa17c442 Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Wed, 15 Jun 2016 09:25:01 +0300 Subject: net: phy: make locally used of_phy_register_fixed_link() static MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch fixes this compiler's warning: drivers/net/phy/phy.c:303:20: warning: no previous prototype for ‘of_phy_register_fixed_link’ [-Wmissing-prototypes] Signed-off-by: Antony Pavlov Signed-off-by: Sascha Hauer --- drivers/net/phy/phy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/net') diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index ed69d9b463..13b8324709 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -300,7 +300,8 @@ void phy_unregister_device(struct phy_device *phydev) phydev->registered = 0; } -struct phy_device *of_phy_register_fixed_link(struct device_node *np, struct eth_device *edev) +static struct phy_device *of_phy_register_fixed_link(struct device_node *np, + struct eth_device *edev) { struct phy_device *phydev; -- cgit v1.2.3