mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
of_mdio: Enable fixed PHY support if driver is a module
The fixed_phy driver doesn't have to be built-in, and it's important that of_mdio supports it even if it's a module. Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8658aaf253
commit
d1bd330a22
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ static inline int of_mdio_parse_addr(struct device *dev,
|
|||
}
|
||||
#endif /* CONFIG_OF */
|
||||
|
||||
#if defined(CONFIG_OF) && defined(CONFIG_FIXED_PHY)
|
||||
#if defined(CONFIG_OF) && IS_ENABLED(CONFIG_FIXED_PHY)
|
||||
extern int of_phy_register_fixed_link(struct device_node *np);
|
||||
extern bool of_phy_is_fixed_link(struct device_node *np);
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue