OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: phy: Find the right match in devm_usb_phy_match
[uclinux-h8/linux.git]
/
drivers
/
usb
/
phy
/
phy.c
diff --git
a/drivers/usb/phy/phy.c
b/drivers/usb/phy/phy.c
index
2f9735b
..
d1cd6b5
100644
(file)
--- 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)
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;
}
/**