phy: cadence: Sierra: Use correct dev pointer in cdns_sierra_phy_remove()

commit 44d30d6228 ("phy: cadence: Add driver for Sierra PHY"),
incorrectly used parent device pointer to get driver data. Fix it here.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
This commit is contained in:
Kishon Vijay Abraham I 2019-12-16 15:27:10 +05:30
parent 6825cfc948
commit 748e3456b2

View File

@ -625,7 +625,7 @@ static int cdns_sierra_phy_probe(struct platform_device *pdev)
static int cdns_sierra_phy_remove(struct platform_device *pdev)
{
struct cdns_sierra_phy *phy = dev_get_drvdata(pdev->dev.parent);
struct cdns_sierra_phy *phy = platform_get_drvdata(pdev);
int i;
reset_control_assert(phy->phy_rst);