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

pinctrl: rockchip: make it explicitly non-modular

The Kconfig currently controlling compilation of this code is:

drivers/pinctrl/Kconfig:config PINCTRL_ROCKCHIP
drivers/pinctrl/Kconfig: bool

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

Lets remove the couple traces of modular infrastructure use, so that
when reading the driver there is no doubt it is builtin-only.

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: Linus Walleij <linus.walleij@linaro.org>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: linux-gpio@vger.kernel.org
Cc: linux-rockchip@lists.infradead.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Paul Gortmaker and committed by
Linus Walleij
2f436204 6d6cc0d8

+1 -6
+1 -6
drivers/pinctrl/pinctrl-rockchip.c
··· 23 23 * GNU General Public License for more details. 24 24 */ 25 25 26 - #include <linux/module.h> 26 + #include <linux/init.h> 27 27 #include <linux/platform_device.h> 28 28 #include <linux/io.h> 29 29 #include <linux/bitops.h> ··· 2704 2704 .data = (void *)&rk3399_pin_ctrl }, 2705 2705 {}, 2706 2706 }; 2707 - MODULE_DEVICE_TABLE(of, rockchip_pinctrl_dt_match); 2708 2707 2709 2708 static struct platform_driver rockchip_pinctrl_driver = { 2710 2709 .probe = rockchip_pinctrl_probe, ··· 2719 2720 return platform_driver_register(&rockchip_pinctrl_driver); 2720 2721 } 2721 2722 postcore_initcall(rockchip_pinctrl_drv_register); 2722 - 2723 - MODULE_AUTHOR("Heiko Stuebner <heiko@sntech.de>"); 2724 - MODULE_DESCRIPTION("Rockchip pinctrl driver"); 2725 - MODULE_LICENSE("GPL v2");