Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: tegra: make clk-tegra124-dfll-fcpu explicitly non-modular

The Kconfig currently controlling compilation of this code is:

arch/arm/mach-tegra/Kconfig:config ARCH_TEGRA_124_SOC
arch/arm/mach-tegra/Kconfig: bool "Enable support for Tegra124 family"

...meaning that it currently is not being built as a module by anyone.

Lets remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.

Since module_init translates to device_initcall in the non-modular
case, the init ordering remains unchanged with this commit.

Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.

We also delete the MODULE_LICENSE tags etc. since all that information
is already contained at the top of the file in the comments.

Cc: Peter De Schrijver <pdeschrijver@nvidia.com>
Cc: Prashant Gaikwad <pgaikwad@nvidia.com>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: Aleksandr Frid <afrid@nvidia.com>
Cc: Paul Walmsley <pwalmsley@nvidia.com>
Cc: linux-clk@vger.kernel.org
Cc: linux-tegra@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Paul Gortmaker and committed by
Stephen Boyd
33996b02 188e8719

+2 -14
+2 -14
drivers/clk/tegra/clk-tegra124-dfll-fcpu.c
··· 20 20 #include <linux/cpu.h> 21 21 #include <linux/err.h> 22 22 #include <linux/kernel.h> 23 - #include <linux/module.h> 23 + #include <linux/init.h> 24 24 #include <linux/platform_device.h> 25 25 #include <soc/tegra/fuse.h> 26 26 ··· 148 148 { .compatible = "nvidia,tegra124-dfll", }, 149 149 { }, 150 150 }; 151 - MODULE_DEVICE_TABLE(of, tegra124_dfll_fcpu_of_match); 152 151 153 152 static const struct dev_pm_ops tegra124_dfll_pm_ops = { 154 153 SET_RUNTIME_PM_OPS(tegra_dfll_runtime_suspend, ··· 168 169 { 169 170 return platform_driver_register(&tegra124_dfll_fcpu_driver); 170 171 } 171 - module_init(tegra124_dfll_fcpu_init); 172 - 173 - static void __exit tegra124_dfll_fcpu_exit(void) 174 - { 175 - platform_driver_unregister(&tegra124_dfll_fcpu_driver); 176 - } 177 - module_exit(tegra124_dfll_fcpu_exit); 178 - 179 - MODULE_DESCRIPTION("Tegra124 DFLL clock source driver"); 180 - MODULE_LICENSE("GPL v2"); 181 - MODULE_AUTHOR("Aleksandr Frid <afrid@nvidia.com>"); 182 - MODULE_AUTHOR("Paul Walmsley <pwalmsley@nvidia.com>"); 172 + device_initcall(tegra124_dfll_fcpu_init);