/* Description: Given a PHY device, and a PHY driver, return 1 if the driver supports the device. Otherwise, return 0.  */
static int mdio_bus_match(struct device *dev, struct device_driver *drv)
/* Description: Given a PHY device, and a PHY driver, return 1 if the driver supports the device. Otherwise, return 0.  */
static int mdio_bus_match(struct device *dev, struct device_driver *drv)
{
	struct phy_device *phydev = to_phy_device(dev);
	struct phy_driver *phydrv = to_phy_driver(drv);
	return ((phydrv->phy_id & phydrv->phy_id_mask) ==
		(phydev->phy_id & phydrv->phy_id_mask));
}