diff options
author | Stephen Boyd <stephen.boyd@linaro.org> | 2016-08-16 15:38:27 -0700 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-08-24 17:37:06 -0700 |
commit | 120c1552839036f0fb2c01fffb8d8ce4049b729a (patch) | |
tree | 1fa23b29edc0526715179779c13bd81218807ab2 /drivers/clk/qcom/gcc-mdm9615.c | |
parent | cc671d13b6a1d1f6db2093994ff75220ce621234 (diff) |
clk: qcom: Migrate to clk_hw based registration and OF APIs
Now that we have clk_hw based provider APIs to register clks, we
can get rid of struct clk pointers in this driver, allowing us to
move closer to a clear split of consumer and provider clk APIs.
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/qcom/gcc-mdm9615.c')
-rw-r--r-- | drivers/clk/qcom/gcc-mdm9615.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/clk/qcom/gcc-mdm9615.c b/drivers/clk/qcom/gcc-mdm9615.c index 0f648fcb2b65..581a17f67379 100644 --- a/drivers/clk/qcom/gcc-mdm9615.c +++ b/drivers/clk/qcom/gcc-mdm9615.c @@ -1686,7 +1686,7 @@ static int gcc_mdm9615_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct regmap *regmap; - struct clk *clk; + int ret; int i; regmap = qcom_cc_map(pdev, &gcc_mdm9615_desc); @@ -1694,9 +1694,9 @@ static int gcc_mdm9615_probe(struct platform_device *pdev) return PTR_ERR(regmap); for (i = 0; i < ARRAY_SIZE(gcc_mdm9615_hws); i++) { - clk = devm_clk_register(dev, gcc_mdm9615_hws[i]); - if (IS_ERR(clk)) - return PTR_ERR(clk); + ret = devm_clk_hw_register(dev, gcc_mdm9615_hws[i]); + if (ret) + return ret; } return qcom_cc_really_probe(pdev, &gcc_mdm9615_desc, regmap); |