summaryrefslogtreecommitdiff
path: root/include/phy.h
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2020-09-21 14:25:37 -0400
committerTom Rini <[email protected]>2020-09-21 14:25:37 -0400
commit751b18b8a1b576aecf51faf22c2bb9e7ce70debd (patch)
tree9339296afd74657deb93955cf5b187f9194d7b5d /include/phy.h
parent3bacb5ee76eadc97c0606e1b408604d20db9a97d (diff)
parentba2a0cbb053951ed6d36161989d38da724696b4d (diff)
Merge branch 'master' into next
Merge in v2020.10-rc5
Diffstat (limited to 'include/phy.h')
-rw-r--r--include/phy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/phy.h b/include/phy.h
index 1dbbf651113..cbdb10d6fce 100644
--- a/include/phy.h
+++ b/include/phy.h
@@ -205,7 +205,7 @@ static inline int phy_write(struct phy_device *phydev, int devad, int regnum,
{
struct mii_dev *bus = phydev->bus;
- if (!bus || !bus->read) {
+ if (!bus || !bus->write) {
debug("%s: No bus configured\n", __func__);
return -1;
}