pinctrl: trivial demodularization of builtin code
Subsystems (6)
cover pinctrl: trivial demodularization of builtin code
This list of changes represents pinctrl drivers that use MODULE_<xyz> tags but otherwise don't make use of any other module_<xyz> functions or macros.
Since the former are no-ops when built-in, we simply remove these MODULE_<xyz> tags and the module.h include that provides them, while ensuring the information in the tag is properly represented in the file at the comments at the top or similar.
Since these tags are no-ops, and we don't remove any orphaned fcns for __exit or .remove support here, the drivers are binary equivalent before and after this change -- i.e. zero runtime regression risk.
Paul.
---
Paul Gortmaker (6):
pinctrl: mediatek: make mtk-common explicitly non-modular
pinctrl: nomadik: make abx500 explicitly non-modular
pinctrl: nomadik: make core support explicitly non-modular
pinctrl: rockchip: make it explicitly non-modular
pinctrl: sirf: make atlas7 explicitly non-modular
pinctrl: sirf: make core support explicitly non-modular
drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 5 ----- drivers/pinctrl/nomadik/pinctrl-abx500.c | 8 ++------ drivers/pinctrl/nomadik/pinctrl-nomadik.c | 5 ----- drivers/pinctrl/pinctrl-rockchip.c | 7 +------ drivers/pinctrl/sirf/pinctrl-atlas7.c | 5 +---- drivers/pinctrl/sirf/pinctrl-sirf.c | 12 +++++------- 6 files changed, 9 insertions(+), 33 deletions(-)
Signature · 1 line
2.8.4
PATCH 2/6 pinctrl: nomadik: make abx500 explicitly non-modular
The Kconfig currently controlling compilation of this code is:
config PINCTRL_ABX500
bool "ST-Ericsson ABx500 family Mixed Signal Circuit gpio functions"
...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_ALIAS is a no-op for non-modular code.
We also delete the MODULE_LICENSE tag etc. since all that information was (or is now) contained at the top of the file in the comments.
--- drivers/pinctrl/nomadik/pinctrl-abx500.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
drivers/pinctrl/nomadik/pinctrl-abx500.c +2 -6
@@ -4,6 +4,8 @@* Author: Patrice Chotard <[email protected]> * License terms: GNU General Public License (GPL) version 2 * +* Driver allows to use AxB5xx unused pins to be used as GPIO +* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation.
@@ -12,7 +14,6 @@#include <linux/types.h> #include <linux/slab.h> #include <linux/init.h> -#include <linux/module.h> #include <linux/err.h> #include <linux/of.h> #include <linux/of_device.h>
@@ -1269,8 +1270,3 @@ static int __init abx500_gpio_init(void)return platform_driver_register (&abx500_gpio_driver); }core_initcall (abx500_gpio_init); - -MODULE_AUTHOR ("Patrice Chotard <[email protected]>" ); -MODULE_DESCRIPTION ("Driver allows to use AxB5xx unused pins to be used as GPIO" ); -MODULE_ALIAS ("platform:abx500-gpio" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 4/6 pinctrl: rockchip: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/Kconfig:config PINCTRL_ROCKCHIPdrivers/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.
--- drivers/pinctrl/pinctrl-rockchip.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/pinctrl/pinctrl-rockchip.c +1 -6
@@ -23,7 +23,7 @@* GNU General Public License for more details. */ -#include <linux/module.h> +#include <linux/init.h> #include <linux/platform_device.h> #include <linux/io.h> #include <linux/bitops.h>
@@ -2704,7 +2704,6 @@ static const struct of_device_id rockchip_pinctrl_dt_match[] = { .data = (void *)&rk3399_pin_ctrl }, {}, }; -MODULE_DEVICE_TABLE (of, rockchip_pinctrl_dt_match);static struct platform_driver rockchip_pinctrl_driver = { .probe = rockchip_pinctrl_probe,
@@ -2720,7 +2719,3 @@ static int __init rockchip_pinctrl_drv_register(void)return platform_driver_register (&rockchip_pinctrl_driver); }postcore_initcall (rockchip_pinctrl_drv_register); - -MODULE_AUTHOR ("Heiko Stuebner <[email protected]>" ); -MODULE_DESCRIPTION ("Rockchip pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 3/6 pinctrl: nomadik: make core support explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/nomadik/Kconfig:config PINCTRL_NOMADIKdrivers/pinctrl/nomadik/Kconfig: bool "Nomadik pin controller driver"
...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.
We delete the MODULE_LICENSE tag etc. since all that information is already contained at the top of the file in the comments.
--- drivers/pinctrl/nomadik/pinctrl-nomadik.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/pinctrl/nomadik/pinctrl-nomadik.c +0 -5
@@ -11,7 +11,6 @@* published by the Free Software Foundation. */ #include <linux/kernel.h> -#include <linux/module.h> #include <linux/init.h> #include <linux/device.h> #include <linux/platform_device.h>
@@ -1983,7 +1982,3 @@ static int __init nmk_pinctrl_init(void)return platform_driver_register (&nmk_pinctrl_driver); }core_initcall (nmk_pinctrl_init); - -MODULE_AUTHOR ("Prafulla WADASKAR and Alessandro Rubini" ); -MODULE_DESCRIPTION ("Nomadik GPIO Driver" ); -MODULE_LICENSE ("GPL" );
Signature · 1 line
2.8.4
PATCH 1/6 pinctrl: mediatek: make mtk-common explicitly non-modular
In reply to Paul GortmakerThe Makefile currently controlling compilation of this code is:
drivers/pinctrl/mediatek/pinctrl-mtk-common.o
---> drivers/pinctrl/mediatek/Makefile:obj-y += pinctrl-mtk-common.o
...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.
We delete the MODULE_LICENSE tag etc. since all that information is already contained at the top of the file in the comments.
We don't replace module.h with init.h since the file doesn't need that.
--- drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/pinctrl/mediatek/pinctrl-mtk-common.c +0 -5
@@ -15,7 +15,6 @@#include <linux/io.h> #include <linux/gpio/driver.h> -#include <linux/module.h> #include <linux/of.h> #include <linux/of_address.h> #include <linux/of_device.h>
@@ -1496,7 +1495,3 @@ chip_error:gpiochip_remove (pctl->chip);return ret; } - -MODULE_LICENSE ("GPL" ); -MODULE_DESCRIPTION ("MediaTek Pinctrl Driver" ); -MODULE_AUTHOR ("Hongzhou Yang <[email protected]>" );
Signature · 1 line
2.8.4
PATCH 5/6 pinctrl: sirf: make atlas7 explicitly non-modular
In reply to Paul GortmakerThe Makefile currently controlling compilation of this code is:
drivers/pinctrl/sirf/pinctrl-atlas7.o
---> drivers/pinctrl/sirf/Makefile:obj-y += pinctrl-atlas7.o
...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.
We delete the MODULE_LICENSE tag etc. since all that information is already contained at the top of the file in the comments.
--- drivers/pinctrl/sirf/pinctrl-atlas7.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/pinctrl/sirf/pinctrl-atlas7.c +1 -4
@@ -7,7 +7,7 @@* Licensed under GPLv2 or later. */ -#include <linux/module.h> +#include <linux/init.h> #include <linux/platform_device.h> #include <linux/io.h> #include <linux/bitops.h>
@@ -6158,6 +6158,3 @@ static int __init atlas7_gpio_init(void)return platform_driver_register (&atlas7_gpio_driver); }subsys_initcall (atlas7_gpio_init); - -MODULE_DESCRIPTION ("SIRFSOC Atlas7 pin control driver" ); -MODULE_LICENSE ("GPL" );
Signature · 1 line
2.8.4
PATCH 6/6 pinctrl: sirf: make core support explicitly non-modular
In reply to Paul GortmakerThe Makefile currently controlling compilation of this code is:
drivers/pinctrl/sirf/pinctrl-sirf.o
--> drivers/pinctrl/sirf/Makefile:obj-y += pinctrl-sirf.o
...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.
We also delete the MODULE_LICENSE tag etc. since all that information was (or is now) contained at the top of the file in the comments.
--- drivers/pinctrl/sirf/pinctrl-sirf.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
drivers/pinctrl/sirf/pinctrl-sirf.c +5 -7
@@ -1,6 +1,11 @@/* * pinmux driver for CSR SiRFprimaII * +* Authors: +* Rongjun Ying <[email protected]> +* Yuping Luo <[email protected]> +* Barry Song <[email protected]> +* * Copyright (c) 2011 - 2014 Cambridge Silicon Radio Limited, a CSR plc group * company. *
@@ -8,7 +13,6 @@*/ #include <linux/init.h> -#include <linux/module.h> #include <linux/irq.h> #include <linux/platform_device.h> #include <linux/io.h>
@@ -884,9 +888,3 @@ static int __init sirfsoc_gpio_init(void)return sirfsoc_gpio_probe (np); }subsys_initcall (sirfsoc_gpio_init); - -MODULE_AUTHOR ("Rongjun Ying <[email protected]>" ); -MODULE_AUTHOR ("Yuping Luo <[email protected]>" ); -MODULE_AUTHOR ("Barry Song <[email protected]>" ); -MODULE_DESCRIPTION ("SIRFSOC pin control driver" ); -MODULE_LICENSE ("GPL" );
Signature · 1 line
2.8.4
Re: [PATCH 1/6] pinctrl: mediatek: make mtk-common explicitly non-modular
In reply to Paul GortmakerQuoted 13 lines · Paul Gortmaker
The
Makefilecurrently controlling compilation of this code is:
drivers/pinctrl/mediatek/pinctrl-mtk-common.o---> drivers/pinctrl/mediatek/Makefile:obj-y += pinctrl-mtk-common.o...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.
We delete the
MODULE_LICENSEtag etc. since all that information is already contained at the top of the file in the comments.
Quoted 6 lines
We don't replace
module.hwithinit.hsince the file doesn't need that.Cc Linus Walleij <[email protected]>Cc Hongzhou Yang <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 2/6] pinctrl: nomadik: make abx500 explicitly non-modular
In reply to Paul GortmakerQuoted 12 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:config
PINCTRL_ABX500
bool "ST-Ericsson ABx500 family Mixed Signal Circuit gpio functions"...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_ALIASis a no-op for non-modular code.
Quoted 8 lines
We also delete the
MODULE_LICENSEtag etc. since all that information was (or is now) contained at the top of the file in the comments.Cc Linus Walleij <[email protected]>Cc Alessandro Rubini <[email protected]>Cc Patrice Chotard <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 3/6] pinctrl: nomadik: make core support explicitly non-modular
In reply to Paul GortmakerQuoted 10 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/nomadik/Kconfig:config
PINCTRL_NOMADIKdrivers/pinctrl/nomadik/Kconfig: bool "Nomadik pin controller driver"...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.
Quoted 7 lines
We delete the
MODULE_LICENSEtag etc. since all that information is already contained at the top of the file in the comments.Cc Linus Walleij <[email protected]>Cc Alessandro Rubini <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 4/6] pinctrl: rockchip: make it explicitly non-modular
In reply to Paul GortmakerQuoted 12 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/Kconfig:config
PINCTRL_ROCKCHIPdrivers/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_TABLEis a no-op for non-modular code.
Quoted 8 lines
We also delete the
MODULE_LICENSEtag etc. since all that information is already contained at the top of the file in the comments.Cc Linus Walleij <[email protected]>Cc Heiko Stuebner <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 5/6] pinctrl: sirf: make atlas7 explicitly non-modular
In reply to Paul GortmakerQuoted 10 lines · Paul Gortmaker
The
Makefilecurrently controlling compilation of this code is:
drivers/pinctrl/sirf/pinctrl-atlas7.o---> drivers/pinctrl/sirf/Makefile:obj-y += pinctrl-atlas7.o...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.
Quoted 7 lines
We delete the
MODULE_LICENSEtag etc. since all that information is already contained at the top of the file in the comments.Cc Linus Walleij <[email protected]>Cc Barry Song <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 6/6] pinctrl: sirf: make core support explicitly non-modular
In reply to Paul GortmakerQuoted 13 lines · Paul Gortmaker
The
Makefilecurrently controlling compilation of this code is:
drivers/pinctrl/sirf/pinctrl-sirf.o--> drivers/pinctrl/sirf/Makefile:obj-y += pinctrl-sirf.o...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.
We also delete the
MODULE_LICENSEtag etc. since all that information was (or is now) contained at the top of the file in the comments.
Quoted 6 lines
Cc Linus Walleij <[email protected]>Cc Rongjun Ying <[email protected]>Cc Yuping Luo <[email protected]>Cc Barry Song <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij