mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-17 00:46:26 -05:00
media: i2c: imx214: Remove hard-coded external clock frequency
Instead rely on the rate set on the clock (using assigned-clock-rates etc.) Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: André Apitzsch <git@apitzsch.eu> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
committed by
Hans Verkuil
parent
5ecc7b0b48
commit
2db8bd2efd
@@ -32,7 +32,6 @@
|
||||
|
||||
#define IMX214_REG_FAST_STANDBY_CTRL CCI_REG8(0x0106)
|
||||
|
||||
#define IMX214_DEFAULT_CLK_FREQ 24000000
|
||||
#define IMX214_DEFAULT_LINK_FREQ 600000000
|
||||
/* Keep wrong link frequency for backward compatibility */
|
||||
#define IMX214_DEFAULT_LINK_FREQ_LEGACY 480000000
|
||||
@@ -1402,11 +1401,6 @@ static int imx214_probe(struct i2c_client *client)
|
||||
return dev_err_probe(dev, PTR_ERR(imx214->xclk),
|
||||
"failed to get xclk\n");
|
||||
|
||||
ret = clk_set_rate(imx214->xclk, IMX214_DEFAULT_CLK_FREQ);
|
||||
if (ret)
|
||||
return dev_err_probe(dev, ret,
|
||||
"failed to set xclk frequency\n");
|
||||
|
||||
ret = imx214_get_regulators(dev, imx214);
|
||||
if (ret < 0)
|
||||
return dev_err_probe(dev, ret, "failed to get regulators\n");
|
||||
|
||||
Reference in New Issue
Block a user