Commit 9084e2c8 authored by Lad Prabhakar's avatar Lad Prabhakar Committed by Sakari Ailus

media: i2c: ov5645: Drop fetching the clk reference by name

The OV5645 sensor has a single clock source, so just drop fetching the
clk reference by name.

This is in preparation to drop the "clock-names" property from the DT
binding.
Suggested-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
parent 80113026
...@@ -1090,7 +1090,7 @@ static int ov5645_probe(struct i2c_client *client) ...@@ -1090,7 +1090,7 @@ static int ov5645_probe(struct i2c_client *client)
} }
/* get system clock (xclk) */ /* get system clock (xclk) */
ov5645->xclk = devm_clk_get(dev, "xclk"); ov5645->xclk = devm_clk_get(dev, NULL);
if (IS_ERR(ov5645->xclk)) { if (IS_ERR(ov5645->xclk)) {
dev_err(dev, "could not get xclk"); dev_err(dev, "could not get xclk");
return PTR_ERR(ov5645->xclk); return PTR_ERR(ov5645->xclk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment