From 7471ea5dc2a21894253a1e10039976a636a283a0 Mon Sep 17 00:00:00 2001 From: Ishan Mittal Date: Thu, 12 May 2016 16:26:31 +0530 Subject: [PATCH] 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 (cherry picked from linux-4.9 commit be9e41d39b8f9b6bbd716ea7a26ea7fdec54bad7) Reviewed-on: https://git-master.nvidia.com/r/1770137 Reviewed-by: Mikko Perttunen GVS: Gerrit_Virtual_Submit Reviewed-by: Timo Alho Tested-by: Timo Alho Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/devfreq/governor_pod_scaling.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/devfreq/governor_pod_scaling.c b/drivers/devfreq/governor_pod_scaling.c index 611cd923..5f84ef3e 100644 --- a/drivers/devfreq/governor_pod_scaling.c +++ b/drivers/devfreq/governor_pod_scaling.c @@ -40,6 +40,7 @@ #include #include #include +#include #include #include @@ -1029,9 +1030,10 @@ static int __init podgov_init(void) static void __exit podgov_exit(void) { devfreq_remove_governor(&nvhost_podgov); + return; } /* governor must be registered before initialising client devices */ rootfs_initcall(podgov_init); module_exit(podgov_exit); - +MODULE_LICENSE("GPL");