From: Thierry Reding Date: Wed, 25 Feb 2015 15:16:29 +0000 (+0100) Subject: phy: Find the right match in devm_phy_destroy() X-Git-Tag: omap-for-v4.2/o2_dc~276^2~5^2~7 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f1bce487cd0a02623cff3d877940f9a2026341c;p=pandora-kernel.git 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: # v3.13+ Signed-off-by: Thierry Reding Signed-off-by: Kishon Vijay Abraham I --- Reading git-diff-tree failed