X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fphy.h;h=cbdb10d6fced9dfc45a5e4297228449bd2fbbca7;hb=f9a48654ee70fbad29f487d074fd36a1548b4209;hp=fedd14609192130f68447748cbe16c8e535d94b8;hpb=f0e236c8d6646f6ef0ebf8f043962a07dda3b3a3;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/phy.h b/include/phy.h index fedd146..cbdb10d 100644 --- a/include/phy.h +++ b/include/phy.h @@ -9,14 +9,17 @@ #ifndef _PHY_H #define _PHY_H -#include +#include +#include +#include +#include #include #include #include #include #include -#include -#include + +struct udevice; #define PHY_FIXED_ID 0xa5a55a5a #define PHY_NCSI_ID 0xbeefcafe @@ -202,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; }