mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 12:56:00 +01:00
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>
This commit is contained in:
parent
5ecdf0a5a4
commit
a17776be1d
@ -463,7 +463,7 @@ static struct phy_driver genphy_driver = {
|
|||||||
.shutdown = genphy_shutdown,
|
.shutdown = genphy_shutdown,
|
||||||
};
|
};
|
||||||
|
|
||||||
int genphy_init(void)
|
static int genphy_init(void)
|
||||||
{
|
{
|
||||||
return phy_register(&genphy_driver);
|
return phy_register(&genphy_driver);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user