X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fphy%2Fqualcomm%2Fphy-qcom-pcie2.c;h=11a2bb9586816e376d4bf229a9faf257d579504a;hb=b8c68345949c27edc05157bae97726cb59da5552;hp=5407e59bb1854a07e42ce8b036c7740466660a1e;hpb=5e6b211136a86e3fa6c9d7d3d0dbc4b7df9923b6;p=linux-2.6-microblaze.git diff --git a/drivers/phy/qualcomm/phy-qcom-pcie2.c b/drivers/phy/qualcomm/phy-qcom-pcie2.c index 5407e59bb185..11a2bb958681 100644 --- a/drivers/phy/qualcomm/phy-qcom-pcie2.c +++ b/drivers/phy/qualcomm/phy-qcom-pcie2.c @@ -243,7 +243,11 @@ static int phy_pipe_clksrc_register(struct qcom_phy *qphy) fixed->fixed_rate = 250000000; fixed->hw.init = &init; - return devm_clk_hw_register(qphy->dev, &fixed->hw); + ret = devm_clk_hw_register(qphy->dev, &fixed->hw); + if (ret < 0) + return ret; + + return devm_of_clk_add_hw_provider(qphy->dev, of_clk_hw_simple_get, &fixed->hw); } static int qcom_pcie2_phy_probe(struct platform_device *pdev)