pinctrl/freescale: fix module usage in non-modular code
Subsystems (4)
PATCH 3/19 pinctrl: imx21: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX21drivers/pinctrl/freescale/Kconfig: bool "i.MX21 pinctrl 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.
Since module_platform_driver() uses the same init level priority as builtin_platform_driver() the init ordering remains unchanged with this commit.
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/freescale/pinctrl-imx21.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx21.c +2 -6
@@ -9,7 +9,7 @@* (at your option) any later version. */ -#include <linux/module.h> +#include <linux/init.h> #include <linux/of.h> #include <linux/platform_device.h> #include <linux/pinctrl/pinctrl.h>
@@ -333,8 +333,4 @@ static struct platform_driver imx21_pinctrl_driver = { .of_match_table = imx21_pinctrl_of_match, }, }; -module_platform_driver_probe (imx21_pinctrl_driver, imx21_pinctrl_probe); - -MODULE_AUTHOR ("Alexander Shiyan <[email protected]>" ); -MODULE_DESCRIPTION ("Freescale i.MX21 pinctrl driver" ); -MODULE_LICENSE ("GPL" ); +builtin_platform_driver_probe (imx21_pinctrl_driver, imx21_pinctrl_probe);
Signature · 1 line
2.8.4
PATCH 5/19 pinctrl: imx27: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX27drivers/pinctrl/freescale/Kconfig: bool "IMX27 pinctrl 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.
Since module_init was not in use by this driver, the init ordering remains unchanged with this commit.
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/freescale/pinctrl-imx27.c | 10 ---------- 1 file changed, 10 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx27.c +0 -10
@@ -14,7 +14,6 @@#include <linux/err.h> #include <linux/init.h> #include <linux/io.h> -#include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/pinctrl/pinctrl.h>
@@ -412,12 +411,3 @@ static int __init imx27_pinctrl_init(void)return platform_driver_register (&imx27_pinctrl_driver); }arch_initcall (imx27_pinctrl_init); - -static void __exit imx27_pinctrl_exit(void) -{ -platform_driver_unregister (&imx27_pinctrl_driver); -} -module_exit (imx27_pinctrl_exit); -MODULE_AUTHOR ("Markus Pargmann <[email protected]>" ); -MODULE_DESCRIPTION ("Freescale IMX27 pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 6/19 pinctrl: imx35: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX35drivers/pinctrl/freescale/Kconfig: bool "IMX35 pinctrl 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.
Since module_init was not in use by this driver, the init ordering remains unchanged with this commit.
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/freescale/pinctrl-imx35.c | 10 ---------- 1 file changed, 10 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx35.c +0 -10
@@ -16,7 +16,6 @@#include <linux/err.h> #include <linux/init.h> #include <linux/io.h> -#include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/pinctrl/pinctrl.h>
@@ -1028,12 +1027,3 @@ static int __init imx35_pinctrl_init(void)return platform_driver_register (&imx35_pinctrl_driver); }arch_initcall (imx35_pinctrl_init); - -static void __exit imx35_pinctrl_exit(void) -{ -platform_driver_unregister (&imx35_pinctrl_driver); -} -module_exit (imx35_pinctrl_exit); -MODULE_AUTHOR ("Dong Aisheng <[email protected]>" ); -MODULE_DESCRIPTION ("Freescale IMX35 pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 7/19 pinctrl: imx50: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX50drivers/pinctrl/freescale/Kconfig: bool "IMX50 pinctrl 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.
Since module_init was not in use by this driver, the init ordering remains unchanged with this commit.
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/freescale/pinctrl-imx50.c | 9 --------- 1 file changed, 9 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx50.c +0 -9
@@ -14,7 +14,6 @@#include <linux/err.h> #include <linux/init.h> #include <linux/io.h> -#include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/pinctrl/pinctrl.h>
@@ -415,11 +414,3 @@ static int __init imx50_pinctrl_init(void)return platform_driver_register (&imx50_pinctrl_driver); }arch_initcall (imx50_pinctrl_init); - -static void __exit imx50_pinctrl_exit(void) -{ -platform_driver_unregister (&imx50_pinctrl_driver); -} -module_exit (imx50_pinctrl_exit); -MODULE_DESCRIPTION ("Freescale IMX50 pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 8/19 pinctrl: imx51: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX51drivers/pinctrl/freescale/Kconfig: bool "IMX51 pinctrl 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.
Since module_init was not in use by this driver, the init ordering remains unchanged with this commit.
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/freescale/pinctrl-imx51.c | 10 ---------- 1 file changed, 10 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx51.c +0 -10
@@ -15,7 +15,6 @@#include <linux/err.h> #include <linux/init.h> #include <linux/io.h> -#include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/pinctrl/pinctrl.h>
@@ -791,12 +790,3 @@ static int __init imx51_pinctrl_init(void)return platform_driver_register (&imx51_pinctrl_driver); }arch_initcall (imx51_pinctrl_init); - -static void __exit imx51_pinctrl_exit(void) -{ -platform_driver_unregister (&imx51_pinctrl_driver); -} -module_exit (imx51_pinctrl_exit); -MODULE_AUTHOR ("Dong Aisheng <[email protected]>" ); -MODULE_DESCRIPTION ("Freescale IMX51 pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 9/19 pinctrl: imx53: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX53drivers/pinctrl/freescale/Kconfig: bool "IMX53 pinctrl 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.
Since module_init was not in use by this driver, the init ordering remains unchanged with this commit.
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/freescale/pinctrl-imx53.c | 10 ---------- 1 file changed, 10 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx53.c +0 -10
@@ -15,7 +15,6 @@#include <linux/err.h> #include <linux/init.h> #include <linux/io.h> -#include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/pinctrl/pinctrl.h>
@@ -478,12 +477,3 @@ static int __init imx53_pinctrl_init(void)return platform_driver_register (&imx53_pinctrl_driver); }arch_initcall (imx53_pinctrl_init); - -static void __exit imx53_pinctrl_exit(void) -{ -platform_driver_unregister (&imx53_pinctrl_driver); -} -module_exit (imx53_pinctrl_exit); -MODULE_AUTHOR ("Dong Aisheng <[email protected]>" ); -MODULE_DESCRIPTION ("Freescale IMX53 pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 10/19 pinctrl: imx6dl: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6Qdrivers/pinctrl/freescale/Kconfig: bool "IMX6Q/DL pinctrl 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.
Since module_init was not in use by this driver, the init ordering remains unchanged with this commit.
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/freescale/pinctrl-imx6dl.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx6dl.c +3 -11
@@ -1,4 +1,7 @@/* +* Freescale imx6dl pinctrl driver +* +* Author: Shawn Guo <[email protected]> * Copyright (C) 2013 Freescale Semiconductor, Inc. * * This program is free software; you can redistribute it and/or modify
@@ -9,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/of_device.h> #include <linux/pinctrl/pinctrl.h>
@@ -484,13 +486,3 @@ static int __init imx6dl_pinctrl_init(void)return platform_driver_register (&imx6dl_pinctrl_driver); }arch_initcall (imx6dl_pinctrl_init); - -static void __exit imx6dl_pinctrl_exit(void) -{ -platform_driver_unregister (&imx6dl_pinctrl_driver); -} -module_exit (imx6dl_pinctrl_exit); - -MODULE_AUTHOR ("Shawn Guo <[email protected]>" ); -MODULE_DESCRIPTION ("Freescale imx6dl pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 11/19 pinctrl: imx6q: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6Qdrivers/pinctrl/freescale/Kconfig: bool "IMX6Q/DL pinctrl 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.
Since module_init translates to device_initcall in the non-modular case, the init ordering remains unchanged with this commit.
We don't replace module.h with init.h since the file already has that. But we do add export.h since this file uses the global THIS_MODULE.
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/freescale/pinctrl-imx6q.c | 10 ---------- 1 file changed, 10 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx6q.c +0 -10
@@ -15,7 +15,6 @@#include <linux/err.h> #include <linux/init.h> #include <linux/io.h> -#include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/pinctrl/pinctrl.h>
@@ -490,12 +489,3 @@ static int __init imx6q_pinctrl_init(void)return platform_driver_register (&imx6q_pinctrl_driver); }arch_initcall (imx6q_pinctrl_init); - -static void __exit imx6q_pinctrl_exit(void) -{ -platform_driver_unregister (&imx6q_pinctrl_driver); -} -module_exit (imx6q_pinctrl_exit); -MODULE_AUTHOR ("Dong Aisheng <[email protected]>" ); -MODULE_DESCRIPTION ("Freescale IMX6Q pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 15/19 pinctrl: imx7d: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX7Ddrivers/pinctrl/freescale/Kconfig: bool "IMX7D pinctrl 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.
Since module_init was not in use by this driver, the init ordering remains unchanged with this commit.
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/freescale/pinctrl-imx7d.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx7d.c +3 -11
@@ -1,4 +1,7 @@/* +* Freescale imx7d pinctrl driver +* +* Author: Anson Huang <[email protected]> * Copyright (C) 2014-2015 Freescale Semiconductor, Inc. * * This program is free software; you can redistribute it and/or modify
@@ -9,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/of_device.h> #include <linux/pinctrl/pinctrl.h>
@@ -402,13 +404,3 @@ static int __init imx7d_pinctrl_init(void)return platform_driver_register (&imx7d_pinctrl_driver); }arch_initcall (imx7d_pinctrl_init); - -static void __exit imx7d_pinctrl_exit(void) -{ -platform_driver_unregister (&imx7d_pinctrl_driver); -} -module_exit (imx7d_pinctrl_exit); - -MODULE_AUTHOR ("Anson Huang <[email protected]>" ); -MODULE_DESCRIPTION ("Freescale imx7d pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 16/19 pinctrl: vf610: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_VF610drivers/pinctrl/freescale/Kconfig: bool "Freescale Vybrid VF610 pinctrl 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.
Since module_init wasn't in use by this driver, the init ordering remains unchanged with this commit.
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/freescale/pinctrl-vf610.c | 10 ---------- 1 file changed, 10 deletions(-)
drivers/pinctrl/freescale/pinctrl-vf610.c +0 -10
@@ -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/of_device.h> #include <linux/pinctrl/pinctrl.h>
@@ -325,12 +324,3 @@ static int __init vf610_pinctrl_init(void)return platform_driver_register (&vf610_pinctrl_driver); }arch_initcall (vf610_pinctrl_init); - -static void __exit vf610_pinctrl_exit(void) -{ -platform_driver_unregister (&vf610_pinctrl_driver); -} -module_exit (vf610_pinctrl_exit); - -MODULE_DESCRIPTION ("Freescale VF610 pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 17/19 pinctrl: imx23: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX23drivers/pinctrl/freescale/Kconfig: bool
...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.
We explicitly disallow a driver unbind, since that doesn't have a sensible use case anyway, and it allows us to drop the ".remove" code for non-modular drivers.
Since module_init wasn't actually used by this driver, the init ordering remains unchanged with this commit.
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 was (or is now) contained at the top of the file in the comments.
--- drivers/pinctrl/freescale/pinctrl-imx23.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx23.c +4 -13
@@ -1,4 +1,7 @@/* +* Freescale i.MX23 pinctrl driver +* +* Author: Shawn Guo <[email protected]> * Copyright 2012 Freescale Semiconductor, Inc. * * The code contained herein is licensed under the GNU General Public
@@ -10,7 +13,6 @@*/ #include <linux/init.h> -#include <linux/module.h> #include <linux/of_device.h> #include <linux/pinctrl/pinctrl.h> #include "pinctrl-mxs.h"
@@ -276,15 +278,14 @@ static const struct of_device_id imx23_pinctrl_of_match[] = { { .compatible = "fsl,imx23-pinctrl", }, {/* sentinel */ } }; -MODULE_DEVICE_TABLE (of, imx23_pinctrl_of_match);static struct platform_driver imx23_pinctrl_driver = { .driver = { .name ="imx23-pinctrl" , + .suppress_bind_attrs = true, .of_match_table = imx23_pinctrl_of_match, }, .probe = imx23_pinctrl_probe, - .remove = mxs_pinctrl_remove, };static int __init imx23_pinctrl_init (void )
@@ -292,13 +293,3 @@ static int __init imx23_pinctrl_init(void)return platform_driver_register (&imx23_pinctrl_driver); }postcore_initcall (imx23_pinctrl_init); - -static void __exit imx23_pinctrl_exit(void) -{ -platform_driver_unregister (&imx23_pinctrl_driver); -} -module_exit (imx23_pinctrl_exit); - -MODULE_AUTHOR ("Shawn Guo <[email protected]>" ); -MODULE_DESCRIPTION ("Freescale i.MX23 pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 18/19 pinctrl: imx28: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX28drivers/pinctrl/freescale/Kconfig: bool
...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.
We explicitly disallow a driver unbind, since that doesn't have a sensible use case anyway, and it allows us to drop the ".remove" code for non-modular drivers.
Since module_init was not in use by this driver, the init ordering remains unchanged with this commit.
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 was (or is now) contained at the top of the file in the comments.
--- drivers/pinctrl/freescale/pinctrl-imx28.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx28.c +4 -13
@@ -1,4 +1,7 @@/* +* Freescale i.MX28 pinctrl driver +* +* Author: Shawn Guo <[email protected]> * Copyright 2012 Freescale Semiconductor, Inc. * * The code contained herein is licensed under the GNU General Public
@@ -10,7 +13,6 @@*/ #include <linux/init.h> -#include <linux/module.h> #include <linux/of_device.h> #include <linux/pinctrl/pinctrl.h> #include "pinctrl-mxs.h"
@@ -392,15 +394,14 @@ static const struct of_device_id imx28_pinctrl_of_match[] = { { .compatible = "fsl,imx28-pinctrl", }, {/* sentinel */ } }; -MODULE_DEVICE_TABLE (of, imx28_pinctrl_of_match);static struct platform_driver imx28_pinctrl_driver = { .driver = { .name ="imx28-pinctrl" , + .suppress_bind_attrs = true, .of_match_table = imx28_pinctrl_of_match, }, .probe = imx28_pinctrl_probe, - .remove = mxs_pinctrl_remove, };static int __init imx28_pinctrl_init (void )
@@ -408,13 +409,3 @@ static int __init imx28_pinctrl_init(void)return platform_driver_register (&imx28_pinctrl_driver); }postcore_initcall (imx28_pinctrl_init); - -static void __exit imx28_pinctrl_exit(void) -{ -platform_driver_unregister (&imx28_pinctrl_driver); -} -module_exit (imx28_pinctrl_exit); - -MODULE_AUTHOR ("Shawn Guo <[email protected]>" ); -MODULE_DESCRIPTION ("Freescale i.MX28 pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 19/19 pinctrl: remove orphaned exported ".remove" function
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_MXSdrivers/pinctrl/freescale/Kconfig: bool
...meaning that it currently is not being built as a module by anyone.
It also doesn't have any modular functionality, so it doesn't need module.h included at all.
What it does have is an exported function that was used as a shared ".remove" by other drivers, but those use cases (imx23 and imx28) are now gone, and hence this can disappear as well.
--- drivers/pinctrl/freescale/pinctrl-mxs.c | 12 ------------ drivers/pinctrl/freescale/pinctrl-mxs.h | 1 - 2 files changed, 13 deletions(-)
drivers/pinctrl/freescale/pinctrl-mxs.c +0 -12
@@ -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/of_address.h> #include <linux/pinctrl/machine.h>
@@ -553,14 +552,3 @@ err:return ret; }EXPORT_SYMBOL_GPL (mxs_pinctrl_probe); - -int mxs_pinctrl_remove (struct platform_device *pdev) -{ -struct mxs_pinctrl_data *d =platform_get_drvdata (pdev); - -pinctrl_unregister (d->pctl); -iounmap (d->base); - -return 0 ; -} -EXPORT_SYMBOL_GPL (mxs_pinctrl_remove);
drivers/pinctrl/freescale/pinctrl-mxs.h +0 -1
@@ -86,6 +86,5 @@ struct mxs_pinctrl_soc_data {int mxs_pinctrl_probe (struct platform_device *pdev,struct mxs_pinctrl_soc_data *soc); -int mxs_pinctrl_remove (struct platform_device *pdev);#endif /* __PINCTRL_MXS_H */
Signature · 1 line
2.8.4
PATCH 1/19 pinctrl: freescale: remove needless module.h include
In reply to Paul GortmakerNone of these files have anything modular in them, so they don't need to be bringing in module.h and all its dependencies.
--- drivers/pinctrl/freescale/pinctrl-imx.c | 1 - drivers/pinctrl/freescale/pinctrl-imx1-core.c | 1 - 2 files changed, 2 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx.c +0 -1
@@ -16,7 +16,6 @@#include <linux/init.h> #include <linux/io.h> #include <linux/mfd/syscon.h> -#include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/of_address.h>
drivers/pinctrl/freescale/pinctrl-imx1-core.c +0 -1
@@ -19,7 +19,6 @@#include <linux/err.h> #include <linux/init.h> #include <linux/io.h> -#include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/pinctrl/machine.h>
Signature · 1 line
2.8.4
PATCH 4/19 pinctrl: imx25: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX25drivers/pinctrl/freescale/Kconfig: bool "IMX25 pinctrl 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.
Since module_init was not in use by this driver, the init ordering remains unchanged with this commit.
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/freescale/pinctrl-imx25.c | 10 ---------- 1 file changed, 10 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx25.c +0 -10
@@ -18,7 +18,6 @@#include <linux/err.h> #include <linux/init.h> #include <linux/io.h> -#include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/pinctrl/pinctrl.h>
@@ -338,12 +337,3 @@ static int __init imx25_pinctrl_init(void)return platform_driver_register (&imx25_pinctrl_driver); }arch_initcall (imx25_pinctrl_init); - -static void __exit imx25_pinctrl_exit(void) -{ -platform_driver_unregister (&imx25_pinctrl_driver); -} -module_exit (imx25_pinctrl_exit); -MODULE_AUTHOR ("Denis Carikli <[email protected]>" ); -MODULE_DESCRIPTION ("Freescale IMX25 pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 2/19 pinctrl: imx1: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX1drivers/pinctrl/freescale/Kconfig: bool "IMX1 pinctrl 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.
Since module_platform_driver() uses the same init level priority as builtin_platform_driver() the init ordering remains unchanged with this commit.
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.
--- drivers/pinctrl/freescale/pinctrl-imx1.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx1.c +2 -7
@@ -9,7 +9,7 @@* (at your option) any later version. */ -#include <linux/module.h> +#include <linux/init.h> #include <linux/of.h> #include <linux/platform_device.h> #include <linux/pinctrl/pinctrl.h>
@@ -262,7 +262,6 @@ static const struct of_device_id imx1_pinctrl_of_match[] = { { .compatible = "fsl,imx1-iomuxc", }, { } }; -MODULE_DEVICE_TABLE (of, imx1_pinctrl_of_match);static struct platform_driver imx1_pinctrl_driver = { .driver = {
@@ -270,8 +269,4 @@ static struct platform_driver imx1_pinctrl_driver = { .of_match_table = imx1_pinctrl_of_match, }, }; -module_platform_driver_probe (imx1_pinctrl_driver, imx1_pinctrl_probe); - -MODULE_AUTHOR ("Alexander Shiyan <[email protected]>" ); -MODULE_DESCRIPTION ("Freescale i.MX1 pinctrl driver" ); -MODULE_LICENSE ("GPL" ); +builtin_platform_driver_probe (imx1_pinctrl_driver, imx1_pinctrl_probe);
Signature · 1 line
2.8.4
PATCH 12/19 pinctrl: imx6sl: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6SLdrivers/pinctrl/freescale/Kconfig: bool "IMX6SL pinctrl 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.
Since module_init was not in use by this driver, the init ordering remains unchanged with this commit.
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 was (or is now) contained at the top of the file in the comments.
--- drivers/pinctrl/freescale/pinctrl-imx6sl.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx6sl.c +3 -12
@@ -1,4 +1,7 @@/* +* Freescale imx6sl pinctrl driver +* +* Author: Shawn Guo <[email protected]> * Copyright (C) 2013 Freescale Semiconductor, Inc. * * This program is free software; you can redistribute it and/or modify
@@ -9,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/of_device.h> #include <linux/pinctrl/pinctrl.h>
@@ -371,7 +373,6 @@ static const struct of_device_id imx6sl_pinctrl_of_match[] = { { .compatible = "fsl,imx6sl-iomuxc", }, {/* sentinel */ } }; -MODULE_DEVICE_TABLE (of, imx6sl_pinctrl_of_match);static int imx6sl_pinctrl_probe (struct platform_device *pdev) {
@@ -391,13 +392,3 @@ static int __init imx6sl_pinctrl_init(void)return platform_driver_register (&imx6sl_pinctrl_driver); }arch_initcall (imx6sl_pinctrl_init); - -static void __exit imx6sl_pinctrl_exit(void) -{ -platform_driver_unregister (&imx6sl_pinctrl_driver); -} -module_exit (imx6sl_pinctrl_exit); - -MODULE_AUTHOR ("Shawn Guo <[email protected]>" ); -MODULE_DESCRIPTION ("Freescale imx6sl pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 14/19 pinctrl: imx6ul: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6ULdrivers/pinctrl/freescale/Kconfig: bool "IMX6UL pinctrl 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.
Since module_init was not in use by this driver, the init ordering remains unchanged with this commit.
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/freescale/pinctrl-imx6ul.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx6ul.c +3 -11
@@ -1,4 +1,7 @@/* +* Freescale imx6ul pinctrl driver +* +* Author: Anson Huang <[email protected]> * Copyright (C) 2015 Freescale Semiconductor, Inc. * * This program is free software; you can redistribute it and/or modify
@@ -9,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/of_device.h> #include <linux/pinctrl/pinctrl.h>
@@ -310,13 +312,3 @@ static int __init imx6ul_pinctrl_init(void)return platform_driver_register (&imx6ul_pinctrl_driver); }arch_initcall (imx6ul_pinctrl_init); - -static void __exit imx6ul_pinctrl_exit(void) -{ -platform_driver_unregister (&imx6ul_pinctrl_driver); -} -module_exit (imx6ul_pinctrl_exit); - -MODULE_AUTHOR ("Anson Huang <[email protected]>" ); -MODULE_DESCRIPTION ("Freescale imx6ul pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
PATCH 13/19 pinctrl: imx6sx: make it explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6SXdrivers/pinctrl/freescale/Kconfig: bool "IMX6SX pinctrl 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.
Since module_init was not in use by this driver, the init ordering remains unchanged with this commit.
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/freescale/pinctrl-imx6sx.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx6sx.c +3 -11
@@ -1,4 +1,7 @@/* +* Freescale imx6sx pinctrl driver +* +* Author: Anson Huang <[email protected]> * Copyright (C) 2014 Freescale Semiconductor, Inc. * * This program is free software; you can redistribute it and/or modify
@@ -9,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/of_device.h> #include <linux/pinctrl/pinctrl.h>
@@ -394,13 +396,3 @@ static int __init imx6sx_pinctrl_init(void)return platform_driver_register (&imx6sx_pinctrl_driver); }arch_initcall (imx6sx_pinctrl_init); - -static void __exit imx6sx_pinctrl_exit(void) -{ -platform_driver_unregister (&imx6sx_pinctrl_driver); -} -module_exit (imx6sx_pinctrl_exit); - -MODULE_AUTHOR ("Anson Huang <[email protected]>" ); -MODULE_DESCRIPTION ("Freescale imx6sx pinctrl driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.8.4
cover pinctrl/freescale: fix module usage in non-modular code
This series covers the audit of non-modular module code use in the drivers/pinctrl/freescale directory. It has a few more commits than I'd normally like in a single series, but fortunately the most of them are dead simple. That said, I can put the branch on kernel.org if that makes life easier for merge processing, given the quantity.
FWIW, I originally had [locally] treated this whole Fsl directory as a single patch, but upon reflection that didn't seem right either, given the various authors, and the size of the combined changeset virtually ensured that nobody Cc'd would genuinely review it all. So 19 it is.
The changes in the drivers for #2-#16 inclusive are just removing the module.h include, the unused exit function, and the no-op AUTHOR/LICENSE tags with the occasional no-op MODULE_DEVICE_TABLE remove sprinkled in.
Only the imx23 and imx28 drivers still linked in a ".remove" function (a shared one) and that usage is phased out in the patch #17 and #18, where we also block sysfs unbind. We get rid of the shared fcn in #19.
Quasi generic boiler plate description follows; included for folks who haven't yet seen what we are aiming to achieve with this operation.
We are trying to not use module support for code that can never be built as a module because:
(1) it is easy to accidentally write unused module_exit and remove code
(2) it can be misleading when reading the source, thinking it can be modular when the Makefile and/or Kconfig prohibit it
(3) it requires the include of the module.h header file which in turn includes nearly everything else, thus adding to CPP overhead.
(4) it gets copied/replicated into other code and spreads like weeds.
The freescale directory is a good example of #4, since all the drivers seem to share a common heritage from one driver that had the fundamental Kconfig vs. code mismatch originally (probably imx1).
Changes seen here cover the following categories:
-just replacement of modular macros with their non-modular
equivalents that CPP would have inserted anyway
-the removal of including module.h ; replaced with init.h
and/or export.h as required based on whether the file used it.
-the removal of any/all unused/orphaned __exit functions that
would never be called.
-the removal of any ".remove" functions that were hooked into
the driver struct. This ".remove" function would of
course not be called from the __exit function since that was never run. However in theory, someone could have triggered it via sysfs unbind, even though there isn't a sensible use case for doing so. So to cover that possibility, we've also disabled sysfs unbind in the driver. [only imx23 and imx28]
There are no initcall level changes here; everything stays at the level of initcall it was previously - either by not using modular versions to begin with, or by using the builtin level equivalents.
As usual, we can consider making some of these tristate if the author has strong feelings about extending support into the modular realm, but I won't be able to run-time test any of that.
Build testing done on linux-next (on arm) as usual.
Paul.
---
Paul Gortmaker (19):
pinctrl: freescale: remove needless module.h include
pinctrl: imx1: make it explicitly non-modular
pinctrl: imx21: make it explicitly non-modular
pinctrl: imx25: make it explicitly non-modular
pinctrl: imx27: make it explicitly non-modular
pinctrl: imx35: make it explicitly non-modular
pinctrl: imx50: make it explicitly non-modular
pinctrl: imx51: make it explicitly non-modular
pinctrl: imx53: make it explicitly non-modular
pinctrl: imx6dl: make it explicitly non-modular
pinctrl: imx6q: make it explicitly non-modular
pinctrl: imx6sl: make it explicitly non-modular
pinctrl: imx6sx: make it explicitly non-modular
pinctrl: imx6ul: make it explicitly non-modular
pinctrl: imx7d: make it explicitly non-modular
pinctrl: vf610: make it explicitly non-modular
pinctrl: imx23: make it explicitly non-modular
pinctrl: imx28: make it explicitly non-modular
pinctrl: remove orphaned exported ".remove" function
drivers/pinctrl/freescale/pinctrl-imx.c | 1 - drivers/pinctrl/freescale/pinctrl-imx1-core.c | 1 - drivers/pinctrl/freescale/pinctrl-imx1.c | 9 ++------- drivers/pinctrl/freescale/pinctrl-imx21.c | 8 ++------ drivers/pinctrl/freescale/pinctrl-imx23.c | 17 ++++------------- drivers/pinctrl/freescale/pinctrl-imx25.c | 10 ---------- drivers/pinctrl/freescale/pinctrl-imx27.c | 10 ---------- drivers/pinctrl/freescale/pinctrl-imx28.c | 17 ++++------------- drivers/pinctrl/freescale/pinctrl-imx35.c | 10 ---------- drivers/pinctrl/freescale/pinctrl-imx50.c | 9 --------- drivers/pinctrl/freescale/pinctrl-imx51.c | 10 ---------- drivers/pinctrl/freescale/pinctrl-imx53.c | 10 ---------- drivers/pinctrl/freescale/pinctrl-imx6dl.c | 14 +++----------- drivers/pinctrl/freescale/pinctrl-imx6q.c | 10 ---------- drivers/pinctrl/freescale/pinctrl-imx6sl.c | 15 +++------------ drivers/pinctrl/freescale/pinctrl-imx6sx.c | 14 +++----------- drivers/pinctrl/freescale/pinctrl-imx6ul.c | 14 +++----------- drivers/pinctrl/freescale/pinctrl-imx7d.c | 14 +++----------- drivers/pinctrl/freescale/pinctrl-mxs.c | 12 ------------ drivers/pinctrl/freescale/pinctrl-mxs.h | 1 - drivers/pinctrl/freescale/pinctrl-vf610.c | 10 ---------- 21 files changed, 27 insertions(+), 189 deletions(-)
Signature · 1 line
2.8.4
Re: [PATCH 01/19] pinctrl: freescale: remove needless module.h include
In reply to Paul GortmakerQuoted 6 lines · Paul Gortmaker
None of these files have anything modular in them, so they don't need to be bringing in
module.hand all its dependencies.Cc Linus Walleij <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 03/19] pinctrl: imx21: make it explicitly non-modular
In reply to Paul GortmakerQuoted 14 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX21drivers/pinctrl/freescale/Kconfig: bool "i.MX21 pinctrl 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.
Since
module_platform_driver()uses the same init level priority asbuiltin_platform_driver()the init ordering remains unchanged with this commit.
Quoted 7 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 Alexander Shiyan <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 05/19] pinctrl: imx27: make it explicitly non-modular
In reply to Paul GortmakerQuoted 13 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX27drivers/pinctrl/freescale/Kconfig: bool "IMX27 pinctrl 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.
Since
module_initwas not in use by this driver, the init ordering remains unchanged with this commit.
Quoted 7 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 Markus Pargmann <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 07/19] pinctrl: imx50: make it explicitly non-modular
In reply to Paul GortmakerQuoted 13 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX50drivers/pinctrl/freescale/Kconfig: bool "IMX50 pinctrl 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.
Since
module_initwas not in use by this driver, the init ordering remains unchanged with this commit.
Quoted 6 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]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 08/19] pinctrl: imx51: make it explicitly non-modular
In reply to Paul GortmakerQuoted 13 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX51drivers/pinctrl/freescale/Kconfig: bool "IMX51 pinctrl 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.
Since
module_initwas not in use by this driver, the init ordering remains unchanged with this commit.
Quoted 7 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 Dong Aisheng <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 02/19] pinctrl: imx1: make it explicitly non-modular
In reply to Paul GortmakerQuoted 16 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX1drivers/pinctrl/freescale/Kconfig: bool "IMX1 pinctrl 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.
Since
module_platform_driver()uses the same init level priority asbuiltin_platform_driver()the init ordering remains unchanged with this commit.Also note that
MODULE_DEVICE_TABLEis a no-op for non-modular code.
Quoted 7 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 Alexander Shiyan <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 09/19] pinctrl: imx53: make it explicitly non-modular
In reply to Paul GortmakerQuoted 13 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX53drivers/pinctrl/freescale/Kconfig: bool "IMX53 pinctrl 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.
Since
module_initwas not in use by this driver, the init ordering remains unchanged with this commit.
Quoted 7 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 Dong Aisheng <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 04/19] pinctrl: imx25: make it explicitly non-modular
In reply to Paul GortmakerQuoted 13 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX25drivers/pinctrl/freescale/Kconfig: bool "IMX25 pinctrl 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.
Since
module_initwas not in use by this driver, the init ordering remains unchanged with this commit.
Quoted 7 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 Denis Carikli <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 10/19] pinctrl: imx6dl: make it explicitly non-modular
In reply to Paul GortmakerQuoted 13 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX6Qdrivers/pinctrl/freescale/Kconfig: bool "IMX6Q/DL pinctrl 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.
Since
module_initwas not in use by this driver, the init ordering remains unchanged with this commit.
Quoted 7 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 Shawn Guo <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 06/19] pinctrl: imx35: make it explicitly non-modular
In reply to Paul GortmakerQuoted 13 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX35drivers/pinctrl/freescale/Kconfig: bool "IMX35 pinctrl 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.
Since
module_initwas not in use by this driver, the init ordering remains unchanged with this commit.
Quoted 7 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 Dong Aisheng <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 11/19] pinctrl: imx6q: make it explicitly non-modular
In reply to Paul GortmakerQuoted 16 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX6Qdrivers/pinctrl/freescale/Kconfig: bool "IMX6Q/DL pinctrl 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.
Since
module_inittranslates todevice_initcallin the non-modular case, the init ordering remains unchanged with this commit.We don't replace
module.hwithinit.hsince the file already has that. But we do addexport.hsince this file uses the globalTHIS_MODULE.
Quoted 7 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 Dong Aisheng <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 12/19] pinctrl: imx6sl: make it explicitly non-modular
In reply to Paul GortmakerQuoted 15 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX6SLdrivers/pinctrl/freescale/Kconfig: bool "IMX6SL pinctrl 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.
Since
module_initwas not in use by this driver, the init ordering remains unchanged with this commit.Also note that
MODULE_DEVICE_TABLEis a no-op for non-modular code.
Quoted 7 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 Shawn Guo <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 13/19] pinctrl: imx6sx: make it explicitly non-modular
In reply to Paul GortmakerQuoted 13 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX6SXdrivers/pinctrl/freescale/Kconfig: bool "IMX6SX pinctrl 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.
Since
module_initwas not in use by this driver, the init ordering remains unchanged with this commit.
Quoted 7 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 Anson Huang <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 14/19] pinctrl: imx6ul: make it explicitly non-modular
In reply to Paul GortmakerQuoted 13 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX6ULdrivers/pinctrl/freescale/Kconfig: bool "IMX6UL pinctrl 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.
Since
module_initwas not in use by this driver, the init ordering remains unchanged with this commit.
Quoted 7 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 Anson Huang <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 15/19] pinctrl: imx7d: make it explicitly non-modular
In reply to Paul GortmakerQuoted 13 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX7Ddrivers/pinctrl/freescale/Kconfig: bool "IMX7D pinctrl 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.
Since
module_initwas not in use by this driver, the init ordering remains unchanged with this commit.
Quoted 7 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 Anson Huang <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 16/19] pinctrl: vf610: make it explicitly non-modular
In reply to Paul GortmakerQuoted 13 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_VF610drivers/pinctrl/freescale/Kconfig: bool "Freescale Vybrid VF610 pinctrl 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.
Since
module_initwasn't in use by this driver, the init ordering remains unchanged with this commit.
Quoted 6 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]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 18/19] pinctrl: imx28: make it explicitly non-modular
In reply to Paul GortmakerQuoted 19 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX28drivers/pinctrl/freescale/Kconfig: bool...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.
We explicitly disallow a driver unbind, since that doesn't have a sensible use case anyway, and it allows us to drop the ".remove" code for non-modular drivers.
Since
module_initwas not in use by this driver, the init ordering remains unchanged with this commit.Also note that
MODULE_DEVICE_TABLEis a no-op for non-modular code.
Quoted 7 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 Shawn Guo <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 19/19] pinctrl: remove orphaned exported ".remove" function
In reply to Paul GortmakerQuoted 10 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_MXSdrivers/pinctrl/freescale/Kconfig: bool...meaning that it currently is not being built as a module by anyone.
It also doesn't have any modular functionality, so it doesn't need
module.hincluded at all.
Quoted 7 lines
What it does have is an exported function that was used as a shared ".remove" by other drivers, but those use cases (imx23 and imx28) are now gone, and hence this can disappear as well.
Cc Linus Walleij <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 17/19] pinctrl: imx23: make it explicitly non-modular
In reply to Paul GortmakerQuoted 19 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/pinctrl/freescale/Kconfig:config
PINCTRL_IMX23drivers/pinctrl/freescale/Kconfig: bool...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.
We explicitly disallow a driver unbind, since that doesn't have a sensible use case anyway, and it allows us to drop the ".remove" code for non-modular drivers.
Since
module_initwasn't actually used by this driver, the init ordering remains unchanged with this commit.Also note that
MODULE_DEVICE_TABLEis a no-op for non-modular code.
Quoted 7 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 Shawn Guo <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Patch applied.
Yours,
Linus Walleij