diff --git a/drivers/soc/rockchip/Kconfig b/drivers/soc/rockchip/Kconfig index 05aa36ff94a2..6da20df77f46 100644 --- a/drivers/soc/rockchip/Kconfig +++ b/drivers/soc/rockchip/Kconfig @@ -52,7 +52,7 @@ config ROCKCHIP_IPA If unsure, say N. config ROCKCHIP_OPP - bool "Rockchip OPP select support" + tristate "Rockchip OPP select support" depends on PM_DEVFREQ default y help diff --git a/drivers/soc/rockchip/rockchip_opp_select.c b/drivers/soc/rockchip/rockchip_opp_select.c index 414fac423793..2f2b69a8fcdc 100644 --- a/drivers/soc/rockchip/rockchip_opp_select.c +++ b/drivers/soc/rockchip/rockchip_opp_select.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -977,3 +978,7 @@ int rockchip_init_opp_table(struct device *dev, return 0; } EXPORT_SYMBOL(rockchip_init_opp_table); + +MODULE_DESCRIPTION("ROCKCHIP OPP Select"); +MODULE_AUTHOR("Finley Xiao , Liang Chen "); +MODULE_LICENSE("GPL"); diff --git a/include/soc/rockchip/rockchip_opp_select.h b/include/soc/rockchip/rockchip_opp_select.h index 5c4abed9ecec..475dc4306ce8 100644 --- a/include/soc/rockchip/rockchip_opp_select.h +++ b/include/soc/rockchip/rockchip_opp_select.h @@ -6,7 +6,7 @@ #ifndef __SOC_ROCKCHIP_OPP_SELECT_H #define __SOC_ROCKCHIP_OPP_SELECT_H -#ifdef CONFIG_ROCKCHIP_OPP +#if IS_ENABLED(CONFIG_ROCKCHIP_OPP) int rockchip_of_get_leakage(struct device *dev, char *lkg_name, int *leakage); void rockchip_of_get_lkg_sel(struct device *dev, struct device_node *np, char *lkg_name, int process,