diff --git a/include/soc/rockchip/rockchip_opp_select.h b/include/soc/rockchip/rockchip_opp_select.h index 97f8d3e4a9ca..5c4abed9ecec 100644 --- a/include/soc/rockchip/rockchip_opp_select.h +++ b/include/soc/rockchip/rockchip_opp_select.h @@ -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)