]> Git Repo - J-u-boot.git/blobdiff - include/phy.h
include: phy: fix NULL pointer check in phy_write()
[J-u-boot.git] / include / phy.h
index 1dbbf651113845a8cf16fa31c022b81f72fddd23..cbdb10d6fced9dfc45a5e4297228449bd2fbbca7 100644 (file)
@@ -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;
        }
This page took 0.027205 seconds and 4 git commands to generate.