diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index a12d35338313bd4f4a67117f3c5c3f76030e53fd..04fc84f2b289907243113e7e0d697cd2411b4e52 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -52,7 +52,9 @@ static void devm_phy_consume(struct device *dev, void *res) static int devm_phy_match(struct device *dev, void *res, void *match_data) { - return res == match_data; + struct phy **phy = res; + + return *phy == match_data; } /**