phy: cadence: Sierra: Use correct dev pointer in cdns_sierra_phy_remove()
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 16 Dec 2019 09:57:10 +0000 (15:27 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 8 Jan 2020 07:28:06 +0000 (12:58 +0530)
commit 44d30d622821d3b ("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>
drivers/phy/cadence/phy-cadence-sierra.c

index 82466d0..eb87f1a 100644 (file)
@@ -625,7 +625,7 @@ clk_disable:
 
 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);