mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
media: i2c: imx290: Use device_property_read_u32() directly
No need to call fwnode_property_read_u32(dev_fwnode()), when we have already existing helper. So use it. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
44cedb7bed
commit
32fceaa6b7
1 changed files with 2 additions and 2 deletions
|
@ -1137,8 +1137,8 @@ static int imx290_init_clk(struct imx290 *imx290)
|
|||
u32 xclk_freq;
|
||||
int ret;
|
||||
|
||||
ret = fwnode_property_read_u32(dev_fwnode(imx290->dev),
|
||||
"clock-frequency", &xclk_freq);
|
||||
ret = device_property_read_u32(imx290->dev, "clock-frequency",
|
||||
&xclk_freq);
|
||||
if (ret) {
|
||||
dev_err(imx290->dev, "Could not get xclk frequency\n");
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue