diff options
Diffstat (limited to 'drivers/usb/phy/phy.c')
-rw-r--r-- | drivers/usb/phy/phy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy.c b/drivers/usb/phy/phy.c index 2f9735b35338..d1cd6b50f520 100644 --- a/drivers/usb/phy/phy.c +++ b/drivers/usb/phy/phy.c | |||
@@ -81,7 +81,9 @@ static void devm_usb_phy_release(struct device *dev, void *res) | |||
81 | 81 | ||
82 | static int devm_usb_phy_match(struct device *dev, void *res, void *match_data) | 82 | static int devm_usb_phy_match(struct device *dev, void *res, void *match_data) |
83 | { | 83 | { |
84 | return res == match_data; | 84 | struct usb_phy **phy = res; |
85 | |||
86 | return *phy == match_data; | ||
85 | } | 87 | } |
86 | 88 | ||
87 | /** | 89 | /** |