rockchip: clk: fix wrong CONFIG_IS_ENABLED handling
CONFIG_IS_ENABLED() needs the config name like used in Kconfig, so without the leading CONFIG_. The clock drivers all wrongly check for CONFIG_RESET_ROCKCHIP, fix that Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
		
							parent
							
								
									a04f6fd17f
								
							
						
					
					
						commit
						a5ada25e42
					
				|  | @ -352,7 +352,7 @@ static int rk3036_clk_bind(struct udevice *dev) | ||||||
| 		sys_child->priv = priv; | 		sys_child->priv = priv; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| #if CONFIG_IS_ENABLED(CONFIG_RESET_ROCKCHIP) | #if CONFIG_IS_ENABLED(RESET_ROCKCHIP) | ||||||
| 	ret = offsetof(struct rk3036_cru, cru_softrst_con[0]); | 	ret = offsetof(struct rk3036_cru, cru_softrst_con[0]); | ||||||
| 	ret = rockchip_reset_bind(dev, ret, 9); | 	ret = rockchip_reset_bind(dev, ret, 9); | ||||||
| 	if (ret) | 	if (ret) | ||||||
|  |  | ||||||
|  | @ -590,7 +590,7 @@ static int rk3188_clk_bind(struct udevice *dev) | ||||||
| 		sys_child->priv = priv; | 		sys_child->priv = priv; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| #if CONFIG_IS_ENABLED(CONFIG_RESET_ROCKCHIP) | #if CONFIG_IS_ENABLED(RESET_ROCKCHIP) | ||||||
| 	ret = offsetof(struct rk3188_cru, cru_softrst_con[0]); | 	ret = offsetof(struct rk3188_cru, cru_softrst_con[0]); | ||||||
| 	ret = rockchip_reset_bind(dev, ret, 9); | 	ret = rockchip_reset_bind(dev, ret, 9); | ||||||
| 	if (ret) | 	if (ret) | ||||||
|  |  | ||||||
|  | @ -508,7 +508,7 @@ static int rk322x_clk_bind(struct udevice *dev) | ||||||
| 		sys_child->priv = priv; | 		sys_child->priv = priv; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| #if CONFIG_IS_ENABLED(CONFIG_RESET_ROCKCHIP) | #if CONFIG_IS_ENABLED(RESET_ROCKCHIP) | ||||||
| 	ret = offsetof(struct rk322x_cru, cru_softrst_con[0]); | 	ret = offsetof(struct rk322x_cru, cru_softrst_con[0]); | ||||||
| 	ret = rockchip_reset_bind(dev, ret, 9); | 	ret = rockchip_reset_bind(dev, ret, 9); | ||||||
| 	if (ret) | 	if (ret) | ||||||
|  |  | ||||||
|  | @ -1015,7 +1015,7 @@ static int rk3288_clk_bind(struct udevice *dev) | ||||||
| 		sys_child->priv = priv; | 		sys_child->priv = priv; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| #if CONFIG_IS_ENABLED(CONFIG_RESET_ROCKCHIP) | #if CONFIG_IS_ENABLED(RESET_ROCKCHIP) | ||||||
| 	ret = offsetof(struct rk3288_cru, cru_softrst_con[0]); | 	ret = offsetof(struct rk3288_cru, cru_softrst_con[0]); | ||||||
| 	ret = rockchip_reset_bind(dev, ret, 12); | 	ret = rockchip_reset_bind(dev, ret, 12); | ||||||
| 	if (ret) | 	if (ret) | ||||||
|  |  | ||||||
|  | @ -791,7 +791,7 @@ static int rk3328_clk_bind(struct udevice *dev) | ||||||
| 		sys_child->priv = priv; | 		sys_child->priv = priv; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| #if CONFIG_IS_ENABLED(CONFIG_RESET_ROCKCHIP) | #if CONFIG_IS_ENABLED(RESET_ROCKCHIP) | ||||||
| 	ret = offsetof(struct rk3328_cru, softrst_con[0]); | 	ret = offsetof(struct rk3328_cru, softrst_con[0]); | ||||||
| 	ret = rockchip_reset_bind(dev, ret, 12); | 	ret = rockchip_reset_bind(dev, ret, 12); | ||||||
| 	if (ret) | 	if (ret) | ||||||
|  |  | ||||||
|  | @ -620,7 +620,7 @@ static int rk3368_clk_bind(struct udevice *dev) | ||||||
| 		sys_child->priv = priv; | 		sys_child->priv = priv; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| #if CONFIG_IS_ENABLED(CONFIG_RESET_ROCKCHIP) | #if CONFIG_IS_ENABLED(RESET_ROCKCHIP) | ||||||
| 	ret = offsetof(struct rk3368_cru, softrst_con[0]); | 	ret = offsetof(struct rk3368_cru, softrst_con[0]); | ||||||
| 	ret = rockchip_reset_bind(dev, ret, 15); | 	ret = rockchip_reset_bind(dev, ret, 15); | ||||||
| 	if (ret) | 	if (ret) | ||||||
|  |  | ||||||
|  | @ -1195,7 +1195,7 @@ static int rk3399_clk_bind(struct udevice *dev) | ||||||
| 		sys_child->priv = priv; | 		sys_child->priv = priv; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| #if CONFIG_IS_ENABLED(CONFIG_RESET_ROCKCHIP) | #if CONFIG_IS_ENABLED(RESET_ROCKCHIP) | ||||||
| 	ret = offsetof(struct rk3399_cru, softrst_con[0]); | 	ret = offsetof(struct rk3399_cru, softrst_con[0]); | ||||||
| 	ret = rockchip_reset_bind(dev, ret, 21); | 	ret = rockchip_reset_bind(dev, ret, 21); | ||||||
| 	if (ret) | 	if (ret) | ||||||
|  |  | ||||||
|  | @ -696,7 +696,7 @@ static int rv1108_clk_bind(struct udevice *dev) | ||||||
| 		sys_child->priv = priv; | 		sys_child->priv = priv; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| #if CONFIG_IS_ENABLED(CONFIG_RESET_ROCKCHIP) | #if CONFIG_IS_ENABLED(RESET_ROCKCHIP) | ||||||
| 	ret = offsetof(struct rv1108_cru, softrst_con[0]); | 	ret = offsetof(struct rv1108_cru, softrst_con[0]); | ||||||
| 	ret = rockchip_reset_bind(dev, ret, 13); | 	ret = rockchip_reset_bind(dev, ret, 13); | ||||||
| 	if (ret) | 	if (ret) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue