power: reset: remove MODULE_LICENSE in non-modules
authorNick Alcock <nick.alcock@oracle.com>
Tue, 7 Mar 2023 18:01:59 +0000 (18:01 +0000)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 13 Apr 2023 20:13:53 +0000 (13:13 -0700)
Since commit 8b41fc4454e ("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 <nick.alcock@oracle.com>
Suggested-by: Luis Chamberlain <mcgrof@kernel.org>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Cc: linux-modules@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: Hitomi Hasegawa <hasegawa-hitomi@fujitsu.com>
Cc: Sebastian Reichel <sre@kernel.org>
Cc: linux-pm@vger.kernel.org
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
drivers/power/reset/as3722-poweroff.c
drivers/power/reset/gpio-poweroff.c
drivers/power/reset/gpio-restart.c
drivers/power/reset/ltc2952-poweroff.c
drivers/power/reset/regulator-poweroff.c
drivers/power/reset/restart-poweroff.c
drivers/power/reset/tps65086-restart.c

index 661e1c67f82eea6a0734ae52bf8b1b363cd02bd2..80edff1a556f8fc15f64f2384ef2620947b4bd2c 100644 (file)
@@ -84,4 +84,3 @@ module_platform_driver(as3722_poweroff_driver);
 MODULE_DESCRIPTION("Power off driver for ams AS3722 PMIC Device");
 MODULE_ALIAS("platform:as3722-power-off");
 MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>");
-MODULE_LICENSE("GPL v2");
index 1c5af2fef1423af68dbbbd1880b8aab6480f2957..84b3c3528afa16b26fb22d9b849087c725640c77 100644 (file)
@@ -105,5 +105,4 @@ module_platform_driver(gpio_poweroff_driver);
 
 MODULE_AUTHOR("Jamie Lentin <jm@lentin.co.uk>");
 MODULE_DESCRIPTION("GPIO poweroff driver");
-MODULE_LICENSE("GPL v2");
 MODULE_ALIAS("platform:poweroff-gpio");
index 5466eeea261cd17bab91e6b99a8d520009147e72..35d981d5e6c8f7aa11d8f9c3282cd3b45a22e7dd 100644 (file)
@@ -139,4 +139,3 @@ module_platform_driver(gpio_restart_driver);
 
 MODULE_AUTHOR("David Riley <davidriley@chromium.org>");
 MODULE_DESCRIPTION("GPIO restart driver");
-MODULE_LICENSE("GPL");
index 65d9528cc98997aa0d8f0804303ccb2af9de3e94..eea05921a054b54e7543c8d549a08a79763fe912 100644 (file)
@@ -317,4 +317,3 @@ module_platform_driver(ltc2952_poweroff_driver);
 
 MODULE_AUTHOR("René Moll <rene.moll@xsens.com>");
 MODULE_DESCRIPTION("LTC PowerPath power-off driver");
-MODULE_LICENSE("GPL v2");
index 20701203935f06ab74e34b263ad266e208b61f04..7f87fbb8b051e23cc17f107efc405302223cc341 100644 (file)
@@ -79,5 +79,4 @@ module_platform_driver(regulator_poweroff_driver);
 
 MODULE_AUTHOR("Michael Klein <michael@fossekall.de>");
 MODULE_DESCRIPTION("Regulator poweroff driver");
-MODULE_LICENSE("GPL v2");
 MODULE_ALIAS("platform:poweroff-regulator");
index 04d4228119b2c722e83ac96bacba37ae0785df96..28f1822db162610c2b7c7a5dc4a907a31af43224 100644 (file)
@@ -59,5 +59,4 @@ module_platform_driver(restart_poweroff_driver);
 
 MODULE_AUTHOR("Andrew Lunn <andrew@lunn.ch");
 MODULE_DESCRIPTION("restart poweroff driver");
-MODULE_LICENSE("GPL v2");
 MODULE_ALIAS("platform:poweroff-restart");
index 78b89f745a3de282da29570f63cd4870e9a3a9d0..5ec819eac7da4d1b6535308e6551fa72b3dfe1b7 100644 (file)
@@ -95,4 +95,3 @@ module_platform_driver(tps65086_restart_driver);
 
 MODULE_AUTHOR("Emil Renner Berthing <kernel@esmil.dk>");
 MODULE_DESCRIPTION("TPS65086 restart driver");
-MODULE_LICENSE("GPL v2");