Skip to content

Commit e63b066

Browse files
nickalcockkrzk
authored andcommitted
memory: tegra: remove MODULE_LICENSE in non-modules
Since commit 8b41fc4 ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message. So remove it in the files in this commit, none of which can be built as modules. Signed-off-by: Nick Alcock <[email protected]> Suggested-by: Luis Chamberlain <[email protected]> Cc: Hitomi Hasegawa <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Jonathan Hunter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent fe15c26 commit e63b066

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

drivers/memory/tegra/mc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,4 +985,3 @@ arch_initcall(tegra_mc_init);
985985

986986
MODULE_AUTHOR("Thierry Reding <[email protected]>");
987987
MODULE_DESCRIPTION("NVIDIA Tegra Memory Controller driver");
988-
MODULE_LICENSE("GPL v2");

drivers/memory/tegra/tegra186-emc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,4 +280,3 @@ module_platform_driver(tegra186_emc_driver);
280280

281281
MODULE_AUTHOR("Thierry Reding <[email protected]>");
282282
MODULE_DESCRIPTION("NVIDIA Tegra186 External Memory Controller driver");
283-
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)