Message ID | 20250109100741.3117652-1-quic_varada@quicinc.com |
---|---|
State | New |
Headers | show |
Series | [v1] phy: qcom-qusb2: Set drvdata before pm_runtime_set_active in probe | expand |
diff --git a/drivers/phy/qualcomm/phy-qcom-qusb2.c b/drivers/phy/qualcomm/phy-qcom-qusb2.c index 1f5f7df14d5a..e08d9c5b409b 100644 --- a/drivers/phy/qualcomm/phy-qcom-qusb2.c +++ b/drivers/phy/qualcomm/phy-qcom-qusb2.c @@ -1025,6 +1025,8 @@ static int qusb2_phy_probe(struct platform_device *pdev) return -ENOMEM; or = &qphy->overrides; + dev_set_drvdata(dev, qphy); + qphy->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(qphy->base)) return PTR_ERR(qphy->base); @@ -1135,7 +1137,6 @@ static int qusb2_phy_probe(struct platform_device *pdev) } qphy->phy = generic_phy; - dev_set_drvdata(dev, qphy); phy_set_drvdata(generic_phy, qphy); phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);