Searched hist:"2 f1bce487cd0a02623cff3d877940f9a2026341c" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/phy/ |
H A D | phy-core.c | diff 2f1bce487cd0a02623cff3d877940f9a2026341c Wed Feb 25 09:16:29 CST 2015 Thierry Reding <treding@nvidia.com> phy: Find the right match in devm_phy_destroy()
devm_phy_create() stores the pointer to the new PHY at the address returned by devres_alloc(). The res parameter passed to devm_phy_match() is therefore the location where the pointer to the PHY is stored, hence it needs to be dereferenced before comparing to the match data in order to find the correct match.
Cc: <stable@vger.kernel.org> # v3.13+ Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
|