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 /drivers/net | |
parent | 5ecdf0a5a42ae3b2d04cdf0c2ad6314670839037 (diff) | |
download | u-boot-a17776be1dbe91684a9d0c60f623e9243e43fea9.zip u-boot-a17776be1dbe91684a9d0c60f623e9243e43fea9.tar.gz u-boot-a17776be1dbe91684a9d0c60f623e9243e43fea9.tar.bz2 |
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>
Diffstat (limited to 'drivers/net')
-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 69acb69..c9fc208 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); } |