media: ccs-core.c: fix failure to call clk_disable_unprepare
Fixes smatch warning: drivers/media/i2c/ccs/ccs-core.c:1676 ccs_power_on() warn: 'sensor->ext_clk' from clk_prepare_enable() not released on lines: 1606. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
6ba65e68a3
commit
eca89cf60b
@ -1602,8 +1602,11 @@ static int ccs_power_on(struct device *dev)
|
|||||||
usleep_range(1000, 2000);
|
usleep_range(1000, 2000);
|
||||||
} while (--retry);
|
} while (--retry);
|
||||||
|
|
||||||
if (!reset)
|
if (!reset) {
|
||||||
return -EIO;
|
dev_err(dev, "software reset failed\n");
|
||||||
|
rval = -EIO;
|
||||||
|
goto out_cci_addr_fail;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sensor->hwcfg.i2c_addr_alt) {
|
if (sensor->hwcfg.i2c_addr_alt) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user