]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: phy: genphy_init can be static
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 18 Sep 2021 11:55:24 +0000 (14:55 +0300)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 28 Sep 2021 15:50:56 +0000 (18:50 +0300)
To avoid a warning with W=1 about this function not having a previous
prototype, declare it as static, because it is not used outside of this
translation module.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/phy/phy.c

index 69acb694606193adfc3aeb6559d0df5c8427c639..c9fc20855ba1189e1b9835b367b69c367b979808 100644 (file)
@@ -463,7 +463,7 @@ static struct phy_driver genphy_driver = {
        .shutdown       = genphy_shutdown,
 };
 
-int genphy_init(void)
+static int genphy_init(void)
 {
        return phy_register(&genphy_driver);
 }