Merge tag 'for-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/kishon/linux...
[deliverable/linux.git] / drivers / usb / phy / phy.c
index 2f9735b3533891c85dc907d8b1cc95a1e50d2559..d1cd6b50f5204898f0ed11785eecc73d1d6f5ebd 100644 (file)
@@ -81,7 +81,9 @@ static void devm_usb_phy_release(struct device *dev, void *res)
 
 static int devm_usb_phy_match(struct device *dev, void *res, void *match_data)
 {
-       return res == match_data;
+       struct usb_phy **phy = res;
+
+       return *phy == match_data;
 }
 
 /**
This page took 0.026721 seconds and 5 git commands to generate.