summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIshan Mittal <imittal@nvidia.com>2016-05-12 06:56:31 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-05 12:58:08 -0400
commit622eede67ce0bcbb43b8697f51a821c76d6a1578 (patch)
tree488fbc911419eff47dd1582bc349656d300d1b4a
parent4ade76010d561d4b1f09039fd55060c2d660a127 (diff)
devfreq: governor_pod_scaling: Fix build errors
MODULE_LICENCE was not declared exit function didnt have an explicit return linux/module.h wasn't included because of which module_exit was throwing errors. Added the statement to do the same. Bug 200199306 Change-Id: Ib9e3a6f832b75095b9465dbe236a1f1c3606563f Signed-off-by: Ishan Mittal <imittal@nvidia.com> (cherry picked from linux-4.9 commit be9e41d39b8f9b6bbd716ea7a26ea7fdec54bad7) Reviewed-on: https://git-master.nvidia.com/r/1770137 Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Timo Alho <talho@nvidia.com> Tested-by: Timo Alho <talho@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/devfreq/governor_pod_scaling.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/devfreq/governor_pod_scaling.c b/drivers/devfreq/governor_pod_scaling.c
index 611cd9233..5f84ef3ec 100644
--- a/drivers/devfreq/governor_pod_scaling.c
+++ b/drivers/devfreq/governor_pod_scaling.c
@@ -40,6 +40,7 @@
40#include <linux/slab.h> 40#include <linux/slab.h>
41#include <linux/clk/tegra.h> 41#include <linux/clk/tegra.h>
42#include <linux/tegra-soc.h> 42#include <linux/tegra-soc.h>
43#include <linux/module.h>
43 44
44#include <linux/notifier.h> 45#include <linux/notifier.h>
45#include <linux/tegra-throughput.h> 46#include <linux/tegra-throughput.h>
@@ -1029,9 +1030,10 @@ static int __init podgov_init(void)
1029static void __exit podgov_exit(void) 1030static void __exit podgov_exit(void)
1030{ 1031{
1031 devfreq_remove_governor(&nvhost_podgov); 1032 devfreq_remove_governor(&nvhost_podgov);
1033 return;
1032} 1034}
1033 1035
1034/* governor must be registered before initialising client devices */ 1036/* governor must be registered before initialising client devices */
1035rootfs_initcall(podgov_init); 1037rootfs_initcall(podgov_init);
1036module_exit(podgov_exit); 1038module_exit(podgov_exit);
1037 1039MODULE_LICENSE("GPL");