mirror of
				https://github.com/Ysurac/openmptcprouter.git
				synced 2025-03-09 15:40:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From e8d2c21ed2f8adac77cfa1d65ae4738cda1ba93f Mon Sep 17 00:00:00 2001
 | |
| From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
 | |
| Date: Fri, 10 Feb 2023 00:09:54 +0200
 | |
| Subject: [PATCH] media: i2c: imx290: Use device_property_read_u32() directly
 | |
| 
 | |
| Should be upstream commit 971458482809
 | |
| 
 | |
| 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>
 | |
| ---
 | |
|  drivers/media/i2c/imx290.c | 4 ++--
 | |
|  1 file changed, 2 insertions(+), 2 deletions(-)
 | |
| 
 | |
| --- a/drivers/media/i2c/imx290.c
 | |
| +++ b/drivers/media/i2c/imx290.c
 | |
| @@ -1137,8 +1137,8 @@ static int imx290_init_clk(struct 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;
 |