mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
soc: rockchip: opp_select: Fix compilation warnings when !CONFIG_ROCKCHIP_OPP
include/soc/rockchip/rockchip_opp_select.h: In function 'rockchip_set_opp_prop_name': include/soc/rockchip/rockchip_opp_select.h:83:9: warning: returning 'int' from a function with return type 'struct opp_table *' makes pointer from integer without a cast [-Wint-conversion] Change-Id: Id8c0fc331bcece33692ddde2084a7e8d3142bd94 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
@@ -80,7 +80,7 @@ static inline struct opp_table *rockchip_set_opp_prop_name(struct device *dev,
|
||||
int process,
|
||||
int volt_sel)
|
||||
{
|
||||
return -ENOTSUPP;
|
||||
return ERR_PTR(-ENOTSUPP);
|
||||
}
|
||||
|
||||
static inline int rockchip_adjust_power_scale(struct device *dev, int scale)
|
||||
|
||||
Reference in New Issue
Block a user