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:
Tao Huang
2020-02-24 17:56:27 +08:00
parent 0377fad75a
commit e4b4c26451

View File

@@ -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)