diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-09-18 14:55:24 +0300 |
---|---|---|
committer | Ramon Fried <rfried.dev@gmail.com> | 2021-09-28 18:50:56 +0300 |
commit | a17776be1dbe91684a9d0c60f623e9243e43fea9 (patch) | |
tree | 1f35c55fadeb920d9b7858366590b1a78c25a0b1 | |
parent | 5ecdf0a5a42ae3b2d04cdf0c2ad6314670839037 (diff) | |
download | u-boot-a17776be1dbe91684a9d0c60f623e9243e43fea9.tar.xz |
net: phy: genphy_init can be static
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>
-rw-r--r-- | drivers/net/phy/phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 69acb69460..c9fc20855b 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -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); } |