Skip to content

Commit

Permalink
media: i2c: ov5645: Drop fetching the clk reference by name
Browse files Browse the repository at this point in the history
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: Laurent Pinchart <[email protected]>
Signed-off-by: Lad Prabhakar <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
  • Loading branch information
prabhakarlad authored and Sakari Ailus committed Oct 25, 2022
1 parent 8011302 commit 9084e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/i2c/ov5645.c
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ static int ov5645_probe(struct i2c_client *client)
}

/* get system clock (xclk) */
ov5645->xclk = devm_clk_get(dev, "xclk");
ov5645->xclk = devm_clk_get(dev, NULL);
if (IS_ERR(ov5645->xclk)) {
dev_err(dev, "could not get xclk");
return PTR_ERR(ov5645->xclk);
Expand Down

0 comments on commit 9084e2c

Please sign in to comment.