diff mbox series

[-next] opp: export dev_pm_opp_adjust_voltage

Message ID 20200617012024.41704-1-jack.qiu@huawei.com
State New
Headers show
Series [-next] opp: export dev_pm_opp_adjust_voltage | expand

Commit Message

Jack Qiu June 17, 2020, 1:20 a.m. UTC
dev_pm_opp_adjust_voltage() is used in qcom-cpufreq-hw module, so export
it to GPL modules. otherwise compile error occurred:
$ make allmodconfig ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
$ make -j64 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-

ERROR: modpost: "dev_pm_opp_adjust_voltage"
[drivers/cpufreq/qcom-cpufreq-hw.ko] undefined

Signed-off-by: Jack Qiu <jack.qiu@huawei.com>
---
 drivers/opp/core.c | 1 +
 1 file changed, 1 insertion(+)

--
2.17.1
diff mbox series

Patch

diff --git a/drivers/opp/core.c b/drivers/opp/core.c
index 6937bf45f497..c9336aac74e9 100644
--- a/drivers/opp/core.c
+++ b/drivers/opp/core.c
@@ -2302,6 +2302,7 @@  int dev_pm_opp_adjust_voltage(struct device *dev, unsigned long freq,
 	dev_pm_opp_put_opp_table(opp_table);
 	return r;
 }
+EXPORT_SYMBOL_GPL(dev_pm_opp_adjust_voltage);

 /**
  * dev_pm_opp_enable() - Enable a specific OPP