mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-05 02:26:24 -04:00
i2c: qcom-cci: Remove the unused variable cci_clk_rate
Variable cci_clk_rate is not effectively used, so delete it.
drivers/i2c/busses/i2c-qcom-cci.c:526:16: warning: variable ‘cci_clk_rate’ set but not used.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=11532
Fixes: 8284750a18 ("i2c: qcom-cci: Stop complaining about DT set clock rate")
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
This commit is contained in:
committed by
Andi Shyti
parent
b7ef4e0b1f
commit
b88c79699d
@@ -523,7 +523,6 @@ static const struct dev_pm_ops qcom_cci_pm = {
|
||||
static int cci_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct device *dev = &pdev->dev;
|
||||
unsigned long cci_clk_rate = 0;
|
||||
struct device_node *child;
|
||||
struct resource *r;
|
||||
struct cci *cci;
|
||||
@@ -594,14 +593,6 @@ static int cci_probe(struct platform_device *pdev)
|
||||
return dev_err_probe(dev, -EINVAL, "not enough clocks in DT\n");
|
||||
cci->nclocks = ret;
|
||||
|
||||
/* Retrieve CCI clock rate */
|
||||
for (i = 0; i < cci->nclocks; i++) {
|
||||
if (!strcmp(cci->clocks[i].id, "cci")) {
|
||||
cci_clk_rate = clk_get_rate(cci->clocks[i].clk);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
ret = cci_enable_clocks(cci);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user