diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2017-04-19 21:59:05 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-04-24 16:28:27 +0200 |
commit | 4726a2c37199f1a982e9a943a23c73530d891e66 (patch) | |
tree | beff3b89776c6acbff8cbf082cf8c3edb1a17aaf /drivers/pinctrl/pinctrl-artpec6.c | |
parent | pinctrl: aspeed: g5: Add pinconf support (diff) | |
download | linux-4726a2c37199f1a982e9a943a23c73530d891e66.tar.xz linux-4726a2c37199f1a982e9a943a23c73530d891e66.zip |
pinctrl: make artpec6 explicitly non-modular
The Kconfig currently controlling compilation of this code is:
drivers/pinctrl/Kconfig:config PINCTRL_ARTPEC6
drivers/pinctrl/Kconfig: bool "Axis ARTPEC-6 pin controller driver"
...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.
Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
We also delete the MODULE_LICENSE tag etc. since all that information
is already contained at the top of the file in the comments.
Cc: Lars Persson <lars.persson@axis.com>
Cc: Niklas Cassel <niklas.cassel@axis.com>
Cc: linux-arm-kernel@axis.com
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-artpec6.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-artpec6.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/pinctrl/pinctrl-artpec6.c b/drivers/pinctrl/pinctrl-artpec6.c index b5a2eff7ae3d..2886e77fbcf0 100644 --- a/drivers/pinctrl/pinctrl-artpec6.c +++ b/drivers/pinctrl/pinctrl-artpec6.c @@ -12,7 +12,6 @@ #include <linux/err.h> #include <linux/init.h> #include <linux/io.h> -#include <linux/module.h> #include <linux/of.h> #include <linux/platform_device.h> #include <linux/pinctrl/pinctrl.h> @@ -979,14 +978,3 @@ static int __init artpec6_pmx_init(void) return platform_driver_register(&artpec6_pmx_driver); } arch_initcall(artpec6_pmx_init); - -static void __exit artpec6_pmx_exit(void) -{ - platform_driver_unregister(&artpec6_pmx_driver); -} -module_exit(artpec6_pmx_exit); - -MODULE_AUTHOR("Chris Paterson <chris.paterson@linux.pieboy.co.uk>"); -MODULE_DESCRIPTION("Axis ARTPEC-6 pin control driver"); -MODULE_LICENSE("GPL v2"); -MODULE_DEVICE_TABLE(of, artpec6_pinctrl_match); |