Skip to content

Commit 748e345

Browse files
committed
phy: cadence: Sierra: Use correct dev pointer in cdns_sierra_phy_remove()
commit 44d30d6 ("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 <[email protected]>
1 parent 6825cfc commit 748e345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/cadence/phy-cadence-sierra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ static int cdns_sierra_phy_probe(struct platform_device *pdev)
625625

626626
static int cdns_sierra_phy_remove(struct platform_device *pdev)
627627
{
628-
struct cdns_sierra_phy *phy = dev_get_drvdata(pdev->dev.parent);
628+
struct cdns_sierra_phy *phy = platform_get_drvdata(pdev);
629629
int i;
630630

631631
reset_control_assert(phy->phy_rst);

0 commit comments

Comments
 (0)