X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fmiiphyutil.c;h=7d4d15ed9189019631578ac9b88ee1f7ac82ce3d;hb=74ce1f8c6f29ddc153d31d01703980c99ee7a7ee;hp=8eb0f761bb0164de32d4a47f69a8b19dd9f98756;hpb=79e2a6a04a2159c81dd08a2ba538edbe158e8a4e;p=oweals%2Fu-boot.git diff --git a/common/miiphyutil.c b/common/miiphyutil.c index 8eb0f761bb..7d4d15ed91 100644 --- a/common/miiphyutil.c +++ b/common/miiphyutil.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2001 * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com. - * - * SPDX-License-Identifier: GPL-2.0+ */ /* @@ -12,8 +11,10 @@ #include #include +#include #include #include +#include #include #include @@ -178,6 +179,11 @@ struct mii_dev *mdio_get_current_dev(void) return current_mii; } +struct list_head *mdio_get_list_head(void) +{ + return &mii_devs; +} + struct phy_device *mdio_phydev_for_ethname(const char *ethname) { struct list_head *entry;