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

commit 44d30d62 ("phy: cadence: Add driver for Sierra PHY"),
incorrectly used parent device pointer to get driver data. Fix it here.
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent 6825cfc9
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment