mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
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>
This commit is contained in:
committed by
Laxman Dewangan
parent
b69d69ec4d
commit
7471ea5dc2
@@ -40,6 +40,7 @@
|
|||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/clk/tegra.h>
|
#include <linux/clk/tegra.h>
|
||||||
#include <linux/tegra-soc.h>
|
#include <linux/tegra-soc.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
|
||||||
#include <linux/notifier.h>
|
#include <linux/notifier.h>
|
||||||
#include <linux/tegra-throughput.h>
|
#include <linux/tegra-throughput.h>
|
||||||
@@ -1029,9 +1030,10 @@ static int __init podgov_init(void)
|
|||||||
static void __exit podgov_exit(void)
|
static void __exit podgov_exit(void)
|
||||||
{
|
{
|
||||||
devfreq_remove_governor(&nvhost_podgov);
|
devfreq_remove_governor(&nvhost_podgov);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* governor must be registered before initialising client devices */
|
/* governor must be registered before initialising client devices */
|
||||||
rootfs_initcall(podgov_init);
|
rootfs_initcall(podgov_init);
|
||||||
module_exit(podgov_exit);
|
module_exit(podgov_exit);
|
||||||
|
MODULE_LICENSE("GPL");
|
||||||
|
|||||||
Reference in New Issue
Block a user