diff options
| author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2016-06-20 20:17:17 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2016-06-23 15:12:21 -0400 |
| commit | d1bd330a229fc8a69f0e7532138dfd42b4542fd4 (patch) | |
| tree | 9b6bba76bf8834b664bffcb92524d873dc574e42 /include | |
| parent | 8658aaf2539795e0b58fe101ae61d989f81700ff (diff) | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/of_mdio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/of_mdio.h b/include/linux/of_mdio.h index 8f2237eb3485..6c8cb9aa4c00 100644 --- a/include/linux/of_mdio.h +++ b/include/linux/of_mdio.h | |||
| @@ -69,7 +69,7 @@ static inline int of_mdio_parse_addr(struct device *dev, | |||
| 69 | } | 69 | } |
| 70 | #endif /* CONFIG_OF */ | 70 | #endif /* CONFIG_OF */ |
| 71 | 71 | ||
| 72 | #if defined(CONFIG_OF) && defined(CONFIG_FIXED_PHY) | 72 | #if defined(CONFIG_OF) && IS_ENABLED(CONFIG_FIXED_PHY) |
| 73 | extern int of_phy_register_fixed_link(struct device_node *np); | 73 | extern int of_phy_register_fixed_link(struct device_node *np); |
| 74 | extern bool of_phy_is_fixed_link(struct device_node *np); | 74 | extern bool of_phy_is_fixed_link(struct device_node *np); |
| 75 | #else | 75 | #else |
