ofs | hex dump | ascii |
---|
0000 | 4d 5a 90 00 03 00 00 00 04 00 00 00 ff ff 00 00 b8 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 | MZ......................@....... |
0020 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d8 00 00 00 | ................................ |
0040 | 0e 1f ba 0e 00 b4 09 cd 21 b8 01 4c cd 21 54 68 69 73 20 70 72 6f 67 72 61 6d 20 63 61 6e 6e 6f | ........!..L.!This.program.canno |
0060 | 74 20 62 65 20 72 75 6e 20 69 6e 20 44 4f 53 20 6d 6f 64 65 2e 0d 0d 0a 24 00 00 00 00 00 00 00 | t.be.run.in.DOS.mode....$....... |
0080 | b4 f7 64 e7 f0 96 0a b4 f0 96 0a b4 f0 96 0a b4 f0 96 0b b4 c5 96 0a b4 86 0b 71 b4 f5 96 0a b4 | ..d.......................q..... |
00a0 | f0 96 0a b4 f4 96 0a b4 d7 50 67 b4 f4 96 0a b4 d7 50 7b b4 e7 96 0a b4 d7 50 76 b4 f1 96 0a b4 | .........Pg......P{......Pv..... |
00c0 | d7 50 72 b4 f1 96 0a b4 52 69 63 68 f0 96 0a b4 00 00 00 00 00 00 00 00 50 45 00 00 00 02 08 00 | .Pr.....Rich............PE...... |
00e0 | 56 b2 15 4f 00 00 00 00 00 00 00 00 f0 00 22 00 0b 02 08 00 00 62 01 00 00 28 00 00 00 00 00 00 | V..O.........."......b...(...... |
0100 | 20 80 01 00 00 20 00 00 00 00 01 00 00 00 00 00 00 20 00 00 00 02 00 00 06 00 00 00 06 00 00 00 | ................................ |
0120 | 05 00 02 00 00 00 00 00 00 60 02 00 00 04 00 00 e8 95 02 00 01 00 00 00 00 00 04 00 00 00 00 00 | .........`...................... |
0140 | 00 10 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 10 00 00 00 | ................................ |
0160 | 00 00 00 00 00 00 00 00 c0 00 02 00 3c 00 00 00 00 20 02 00 b0 03 00 00 00 a0 01 00 14 04 00 00 | ............<................... |
0180 | 00 8e 01 00 60 20 00 00 00 40 02 00 88 05 00 00 00 80 01 00 1c 00 00 00 00 00 00 00 00 00 00 00 | ....`....@...................... |
01a0 | 00 c0 21 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ..!............................. |
01c0 | 00 e0 01 00 b8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
01e0 | 2e 74 65 78 74 00 00 00 80 58 01 00 00 20 00 00 00 5a 01 00 00 04 00 00 00 00 00 00 00 00 00 00 | .text....X.......Z.............. |
0200 | 00 00 00 00 20 00 00 68 2e 72 64 61 74 61 00 00 78 0d 00 00 00 80 01 00 00 0e 00 00 00 5e 01 00 | .......h.rdata..x............^.. |
0220 | 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 48 2e 70 64 61 74 61 00 00 14 04 00 00 00 a0 01 00 | ............@..H.pdata.......... |
0240 | 00 06 00 00 00 6c 01 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 48 2e 73 72 64 61 74 61 00 | .....l..............@..H.srdata. |
0260 | cc 01 00 00 00 c0 01 00 00 02 00 00 00 72 01 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 48 | .............r..............@..H |
0280 | 2e 73 64 61 74 61 00 00 c8 02 00 00 00 e0 01 00 00 04 00 00 00 74 01 00 00 00 00 00 00 00 00 00 | .sdata...............t.......... |
02a0 | 00 00 00 00 40 00 00 c8 49 4e 49 54 00 00 00 00 1c 07 00 00 00 00 02 00 00 08 00 00 00 78 01 00 | ....@...INIT.................x.. |
02c0 | 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 e2 2e 72 73 72 63 00 00 00 b0 03 00 00 00 20 02 00 | .................rsrc........... |
02e0 | 00 04 00 00 00 80 01 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 42 2e 72 65 6c 6f 63 00 00 | ....................@..B.reloc.. |
0300 | d2 08 00 00 00 40 02 00 00 0a 00 00 00 84 01 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 42 | .....@......................@..B |
0320 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0340 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0360 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0380 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
03a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
03c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
03e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0400 | 04 28 25 0c 80 05 00 00 00 00 00 c0 04 42 b0 61 05 40 01 44 00 21 00 00 00 00 00 e0 04 40 b0 61 | .(%..........B.a.@.D.!.......@.a |
0420 | 11 18 c1 41 00 21 40 02 00 62 00 00 e8 f4 00 50 10 f0 00 46 10 10 f0 01 88 2c 00 00 00 00 00 20 | ...A.!@..b.....P...F.....,...... |
0440 | 05 00 00 00 01 00 00 00 00 00 00 c0 04 42 b0 61 04 00 02 3c 8f 38 00 00 00 00 00 00 05 44 b0 61 | .............B.a...<.8.......D.a |
0460 | 05 00 00 00 01 00 00 00 00 00 00 e0 04 40 ac 61 f3 e9 7c 3e 11 e0 03 18 00 80 21 00 18 f3 00 50 | .............@.a..|>......!....P |
0480 | 04 00 00 00 01 00 c0 ff ff ff 7f 00 41 00 0c 68 19 00 00 00 01 00 00 00 00 02 00 00 30 01 00 40 | ............A..h............0..@ |
04a0 | 04 00 7e 44 8f 31 00 00 00 00 00 c0 04 42 b0 61 19 40 01 44 00 21 00 00 00 02 80 07 50 00 00 42 | ..~D.1.......B.a.@.D.!......P..B |
04c0 | 05 00 00 00 01 00 00 00 00 00 00 e0 04 46 b0 61 13 00 00 00 01 00 00 00 00 00 10 00 b8 f2 00 50 | .............F.a...............P |
04e0 | 04 00 00 00 01 00 c0 ff ff ff 7f 00 d1 00 00 68 19 00 00 00 01 00 00 00 00 02 00 00 d0 00 00 40 | ...............h...............@ |
0500 | 04 38 75 3e 13 20 00 00 00 00 00 c0 04 42 b0 61 02 40 00 00 00 21 80 02 88 00 42 c0 73 02 4d 80 | .8u>.........B.a.@...!....B.s.M. |
0520 | 05 00 00 00 01 00 00 00 00 00 00 e0 04 40 b4 61 11 e0 e0 3d 00 21 b0 01 78 02 42 00 00 00 00 20 | .............@.a...=.!..x.B..... |
0540 | 19 d0 00 38 10 10 90 01 6c 70 20 00 00 00 00 20 19 78 02 34 80 38 00 00 00 02 80 07 80 ff ff 4a | ...8....lp.......x.4.8.........J |
0560 | 04 80 65 50 40 04 00 00 00 00 00 e0 04 42 b4 61 11 70 66 42 00 38 d0 04 64 00 70 07 50 00 00 43 | ..eP@........B.a.pfB.8..d.p.P..C |
0580 | a4 01 84 36 98 11 00 00 00 00 00 c0 04 42 b0 61 b3 41 00 00 00 61 03 18 00 80 21 00 f8 f1 00 50 | ...6.........B.a.A...a....!....P |
05a0 | 04 00 00 00 01 00 80 ff ff ff 7f 00 11 01 00 68 19 00 00 00 01 00 00 00 00 02 00 00 10 00 00 40 | ...............h...............@ |
05c0 | 02 00 00 00 01 00 00 20 05 80 03 00 50 02 aa 00 19 00 00 00 01 00 00 00 00 02 00 80 08 00 84 00 | ............P................... |
05e0 | 08 50 41 1a 81 05 e0 c1 85 02 42 80 05 00 cc 00 09 40 01 42 00 21 f0 01 82 00 42 a0 03 0c 05 84 | .PA.......B......@.B.!....B..... |
0600 | 08 b0 00 3e 18 10 90 01 78 30 20 20 05 00 c4 00 09 70 01 42 00 21 f0 02 00 00 48 a0 05 08 01 84 | ...>....x0.......p.B.!....H..... |
0620 | 08 e0 00 32 00 10 a0 01 74 70 20 60 05 08 ca 00 11 d8 40 2c 00 21 e0 01 02 96 4a 00 00 00 00 20 | ...2....tp.`......@,.!....J..... |
0640 | 08 38 5a 38 80 39 50 01 58 70 20 80 82 d0 00 84 13 30 6e 38 80 f9 01 a0 01 80 21 03 20 03 00 43 | .8Z8.9P.Xp.......0n8......!....C |
0660 | 08 88 69 54 40 04 e0 02 50 70 20 c0 08 d0 00 e0 19 78 01 2d 00 21 d0 f1 58 00 40 03 d0 02 00 43 | ..iT@...Pp.......x.-.!..X.@....C |
0680 | 08 98 b9 54 40 04 10 ab a8 80 08 c0 e8 aa 00 e0 19 68 21 2c 00 21 00 00 00 02 00 03 50 00 00 43 | ...T@............h!,.!......P..C |
06a0 | 19 78 01 5e 10 10 b0 01 74 60 20 00 00 00 00 20 19 00 02 5e 86 38 a0 01 b4 70 20 03 90 02 00 43 | .x.^....t`.........^.8...p.....C |
06c0 | 11 88 6d 54 40 04 60 04 6c 00 71 03 80 02 00 42 11 90 69 54 40 04 00 74 69 1c 70 07 70 02 00 42 | ..mT@.`.l.q....B..iT@..ti.p.p..B |
06e0 | 04 78 11 2d 00 21 c0 ff ff ff 7f c0 b5 03 04 68 19 30 02 38 80 38 90 14 70 00 73 03 90 01 00 42 | .x.-.!.........h.0.8.8..p.s....B |
0700 | 08 40 3a 38 80 39 f0 02 00 00 48 e0 28 e1 18 e6 13 68 01 50 00 61 02 58 00 80 21 04 30 00 00 43 | .@:8.9....H.(....h.P.a.X..!.0..C |
0720 | f3 70 01 00 00 a4 01 50 01 00 21 00 e0 82 00 50 19 00 00 00 01 00 00 00 00 02 00 00 c0 02 00 40 | .p.....P..!....P...............@ |
0740 | 04 f0 10 2d 00 21 c0 ff ff ff 7f c0 45 00 0c 68 11 78 01 00 00 24 d0 02 58 00 42 00 00 00 00 20 | ...-.!......E..h.x...$..X.B..... |
0760 | 0a f8 00 3c 10 10 60 04 7c 00 71 00 00 00 04 00 19 00 00 00 01 00 00 00 00 02 00 03 30 00 00 42 | ...<..`.|.q.................0..B |
0780 | 13 70 01 50 00 21 00 00 00 00 10 00 00 21 00 50 19 00 00 00 01 00 00 00 00 02 00 00 60 02 00 40 | .p.P.!.......!.P............`..@ |
07a0 | 13 68 01 50 00 21 00 00 00 00 10 00 60 82 00 50 19 00 00 00 01 00 00 00 00 02 00 00 40 02 00 40 | .h.P.!......`..P............@..@ |
07c0 | 04 78 c1 32 00 21 00 00 00 00 00 a0 05 40 90 62 05 08 01 2c 01 21 00 00 00 00 00 c0 05 44 8c 62 | .x.2.!.......@.b...,.!.......D.b |
07e0 | 02 00 01 5e 18 10 10 00 00 00 01 00 f0 09 2a 00 13 78 01 40 00 21 00 00 00 00 10 00 18 f1 00 50 | ...^..........*..x.@.!.........P |
0800 | 11 f8 00 40 00 21 00 10 08 15 00 00 00 00 00 20 71 02 00 44 98 51 14 82 88 14 42 00 00 00 00 20 | ...@.!..........q..D.Q....B..... |
0820 | 13 1a 01 42 18 10 00 00 00 00 10 00 00 00 00 20 13 92 8e 3e 00 38 00 00 00 00 10 e0 e0 ff ff 4a | ...B...............>.8.........J |
0840 | 1d 00 00 00 01 00 00 00 00 02 00 00 00 00 10 00 08 68 01 50 00 21 e0 02 00 00 48 00 b0 0a aa 00 | .................h.P.!....H..... |
0860 | 13 78 01 00 00 24 00 00 00 00 10 00 a0 81 00 50 19 00 00 00 01 00 00 00 00 02 00 00 80 01 00 40 | .x...$.........P...............@ |
0880 | 04 f0 00 5e 10 10 c0 ff ff ff 7f c0 45 00 0c 68 09 68 21 00 45 25 f0 02 00 00 48 a0 c3 02 1c 95 | ...^........E..h.h!.E%....H..... |
08a0 | 08 d8 b4 2c 00 20 60 04 78 00 71 40 d3 b1 00 80 19 68 01 2c 00 21 00 00 00 02 00 03 70 00 00 42 | ...,..`.x.q@.....h.,.!......p..B |
08c0 | 09 e0 00 36 10 10 f0 01 68 60 20 e0 15 00 00 90 19 70 05 00 00 24 60 0c 70 00 73 03 20 00 00 43 | ...6....h`.......p...$`.p.s....C |
08e0 | 11 98 7c 54 40 04 60 04 7c 00 71 03 00 ab 00 50 08 68 01 50 00 21 e0 02 00 00 48 e0 05 00 00 90 | ..|T@.`.|.q....P.h.P.!....H..... |
0900 | 13 00 00 00 01 00 00 00 00 00 10 00 00 81 00 50 19 00 00 00 01 00 00 00 00 02 00 00 e0 00 00 40 | ...............P...............@ |
0920 | 13 68 01 5From 0c8c6ba00cbf2c0a6164aa41d43d017d65caf321 Mon Sep 17 00:00:00 2001
From: Paul Gortmaker <paul.gortmaker@windriver.com>
Date: Sat, 29 Oct 2016 20:00:30 -0400
Subject: pinctrl: sunxi: make bool drivers explicitly non-modular
None of the Kconfigs for any of these drivers are tristate,
meaning that they currently are not being built as a module by anyone.
Lets remove the modular code that is essentially orphaned, so that
when reading the drivers there is no doubt they are builtin-only. All
drivers get essentially the same change, so they are handled in batch.
Changes are (1) use builtin_platform_driver, (2) use init.h header
(3) delete module_exit related code, (4) delete MODULE_DEVICE_TABLE,
and (5) delete MODULE_LICENCE/MODULE_AUTHOR and associated tags.
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 do delete the MODULE_LICENSE etc. tags since all that information
is already contained at the top of each file in the comments.
Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: Hongzhou Yang <hongzhou.yang@mediatek.com>
Cc: Fabian Frederick <fabf@skynet.be>
Cc: Maxime Coquelin <maxime.coquelin@st.com>
Cc: Vishnu Patekar <vishnupatekar0510@gmail.com>
Cc: Mylene Josserand <mylene.josserand@free-electrons.com>
Cc: linux-gpio@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
drivers/pinctrl/sunxi/pinctrl-gr8.c | 9 ++-------
drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c | 9 ++-------
drivers/pinctrl/sunxi/pinctrl-sun5i-a10s.c | 9 ++-------
drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c | 9 ++-------
drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c | 10 ++--------
drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c | 9 ++-------
drivers/pinctrl/sunxi/pinctrl-sun6i-a31s.c | 9 ++-------
drivers/pinctrl/sunxi/pinctrl-sun7i-a20.c | 9 ++-------
drivers/pinctrl/sunxi/pinctrl-sun8i-a23-r.c | 11 ++---------
drivers/pinctrl/sunxi/pinctrl-sun8i-a23.c | 10 ++--------
drivers/pinctrl/sunxi/pinctrl-sun8i-a33.c | 9 ++-------
drivers/pinctrl/sunxi/pinctrl-sun8i-a83t.c | 9 ++-------
drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c | 9 ++-------
13 files changed, 26 insertions(+), 95 deletions(-)
--- a/drivers/pinctrl/sunxi/pinctrl-gr8.c
+++ b/drivers/pinctrl/sunxi/pinctrl-gr8.c
@@ -12,7 +12,7 @@
* warranty of any kind, whether express or implied.
*/
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -525,7 +525,6 @@ static const struct of_device_id sun5i_g
{ .compatible = "nextthing,gr8-pinctrl", },
{}
};
-MODULE_DEVICE_TABLE(of, sun5i_gr8_pinctrl_match);
static struct platform_driver sun5i_gr8_pinctrl_driver = {
.probe = sun5i_gr8_pinctrl_probe,
@@ -534,8 +533,4 @@ static struct platform_driver sun5i_gr8_
.of_match_table = sun5i_gr8_pinctrl_match,
},
};
-module_platform_driver(sun5i_gr8_pinctrl_driver);
-
-MODULE_AUTHOR("Mylene Josserand <mylene.josserand@free-electrons.com");
-MODULE_DESCRIPTION("NextThing GR8 pinctrl driver");
-MODULE_LICENSE("GPL");
+builtin_platform_driver(sun5i_gr8_pinctrl_driver);
--- a/drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c
@@ -10,7 +10,7 @@
* warranty of any kind, whether express or implied.
*/
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -1036,7 +1036,6 @@ static const struct of_device_id sun4i_a
{ .compatible = "allwinner,sun4i-a10-pinctrl", },
{}
};
-MODULE_DEVICE_TABLE(of, sun4i_a10_pinctrl_match);
static struct platform_driver sun4i_a10_pinctrl_driver = {
.probe = sun4i_a10_pinctrl_probe,
@@ -1045,8 +1044,4 @@ static struct platform_driver sun4i_a10_
.of_match_table = sun4i_a10_pinctrl_match,
},
};
-module_platform_driver(sun4i_a10_pinctrl_driver);
-
-MODULE_AUTHOR("Maxime Ripard <maxime.ripard@free-electrons.com");
-MODULE_DESCRIPTION("Allwinner A10 pinctrl driver");
-MODULE_LICENSE("GPL");
+builtin_platform_driver(sun4i_a10_pinctrl_driver);
--- a/drivers/pinctrl/sunxi/pinctrl-sun5i-a10s.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun5i-a10s.c
@@ -10,7 +10,7 @@
* warranty of any kind, whether express or implied.
*/
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -674,7 +674,6 @@ static const struct of_device_id sun5i_a
{ .compatible = "allwinner,sun5i-a10s-pinctrl", },
{}
};
-MODULE_DEVICE_TABLE(of, sun5i_a10s_pinctrl_match);
static struct platform_driver sun5i_a10s_pinctrl_driver = {
.probe = sun5i_a10s_pinctrl_probe,
@@ -683,8 +682,4 @@ static struct platform_driver sun5i_a10s
.of_match_table = sun5i_a10s_pinctrl_match,
},
};
-module_platform_driver(sun5i_a10s_pinctrl_driver);
-
-MODULE_AUTHOR("Maxime Ripard <maxime.ripard@free-electrons.com");
-MODULE_DESCRIPTION("Allwinner A10s pinctrl driver");
-MODULE_LICENSE("GPL");
+builtin_platform_driver(sun5i_a10s_pinctrl_driver);
--- a/drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c
@@ -10,7 +10,7 @@
* warranty of any kind, whether express or implied.
*/
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -392,7 +392,6 @@ static const struct of_device_id sun5i_a
{ .compatible = "allwinner,sun5i-a13-pinctrl", },
{}
};
-MODULE_DEVICE_TABLE(of, sun5i_a13_pinctrl_match);
static struct platform_driver sun5i_a13_pinctrl_driver = {
.probe = sun5i_a13_pinctrl_probe,
@@ -401,8 +400,4 @@ static struct platform_driver sun5i_a13_
.of_match_table = sun5i_a13_pinctrl_match,
},
};
-module_platform_driver(sun5i_a13_pinctrl_driver);
-
-MODULE_AUTHOR("Maxime Ripard <maxime.ripard@free-electrons.com");
-MODULE_DESCRIPTION("Allwinner A13 pinctrl driver");
-MODULE_LICENSE("GPL");
+builtin_platform_driver(sun5i_a13_pinctrl_driver);
--- a/drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c
@@ -12,7 +12,7 @@
* warranty of any kind, whether express or implied.
*/
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -136,7 +136,6 @@ static const struct of_device_id sun6i_a
{ .compatible = "allwinner,sun6i-a31-r-pinctrl", },
{}
};
-MODULE_DEVICE_TABLE(of, sun6i_a31_r_pinctrl_match);
static struct platform_driver sun6i_a31_r_pinctrl_driver = {
.probe = sun6i_a31_r_pinctrl_probe,
@@ -145,9 +144,4 @@ static struct platform_driver sun6i_a31_
.of_match_table = sun6i_a31_r_pinctrl_match,
},
};
-module_platform_driver(sun6i_a31_r_pinctrl_driver);
-
-MODULE_AUTHOR("Boris Brezillon <boris.brezillon@free-electrons.com");
-MODULE_AUTHOR("Maxime Ripard <maxime.ripard@free-electrons.com");
-MODULE_DESCRIPTION("Allwinner A31 R_PIO pinctrl driver");
-MODULE_LICENSE("GPL");
+builtin_platform_driver(sun6i_a31_r_pinctrl_driver);
--- a/drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c
@@ -10,7 +10,7 @@
* warranty of any kind, whether express or implied.
*/
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -934,7 +934,6 @@ static const struct of_device_id sun6i_a
{ .compatible = "allwinner,sun6i-a31-pinctrl", },
{}
};
-MODULE_DEVICE_TABLE(of, sun6i_a31_pinctrl_match);
static struct platform_driver sun6i_a31_pinctrl_driver = {
.probe = sun6i_a31_pinctrl_probe,
@@ -943,8 +942,4 @@ static struct platform_driver sun6i_a31_
.of_match_table = sun6i_a31_pinctrl_match,
},
};
-module_platform_driver(sun6i_a31_pinctrl_driver);
-
-MODULE_AUTHOR("Maxime Ripard <maxime.ripard@free-electrons.com");
-MODULE_DESCRIPTION("Allwinner A31 pinctrl driver");
-MODULE_LICENSE("GPL");
+builtin_platform_driver(sun6i_a31_pinctrl_driver);
--- a/drivers/pinctrl/sunxi/pinctrl-sun6i-a31s.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun6i-a31s.c
@@ -11,7 +11,7 @@
* warranty of any kind, whether express or implied.
*/
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -798,7 +798,6 @@ static const struct of_device_id sun6i_a
{ .compatible = "allwinner,sun6i-a31s-pinctrl", },
{}
};
-MODULE_DEVICE_TABLE(of, sun6i_a31s_pinctrl_match);
static struct platform_driver sun6i_a31s_pinctrl_driver = {
.probe = sun6i_a31s_pinctrl_probe,
@@ -807,8 +806,4 @@ static struct platform_driver sun6i_a31s
.of_match_table = sun6i_a31s_pinctrl_match,
},
};
-module_platform_driver(sun6i_a31s_pinctrl_driver);
-
-MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>");
-MODULE_DESCRIPTION("Allwinner A31s pinctrl driver");
-MODULE_LICENSE("GPL");
+builtin_platform_driver(sun6i_a31s_pinctrl_driver);
--- a/drivers/pinctrl/sunxi/pinctrl-sun7i-a20.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun7i-a20.c
@@ -10,7 +10,7 @@
* warranty of any kind, whether express or implied.
*/
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -1045,7 +1045,6 @@ static const struct of_device_id sun7i_a
{ .compatible = "allwinner,sun7i-a20-pinctrl", },
{}
};
-MODULE_DEVICE_TABLE(of, sun7i_a20_pinctrl_match);
static struct platform_driver sun7i_a20_pinctrl_driver = {
.probe = sun7i_a20_pinctrl_probe,
@@ -1054,8 +1053,4 @@ static struct platform_driver sun7i_a20_
.of_match_table = sun7i_a20_pinctrl_match,
},
};
-module_platform_driver(sun7i_a20_pinctrl_driver);
-
-MODULE_AUTHOR("Maxime Ripard <maxime.ripard@free-electrons.com");
-MODULE_DESCRIPTION("Allwinner A20 pinctrl driver");
-MODULE_LICENSE("GPL");
+builtin_platform_driver(sun7i_a20_pinctrl_driver);
--- a/drivers/pinctrl/sunxi/pinctrl-sun8i-a23-r.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun8i-a23-r.c
@@ -15,7 +15,7 @@
* warranty of any kind, whether express or implied.
*/
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -123,7 +123,6 @@ static const struct of_device_id sun8i_a
{ .compatible = "allwinner,sun8i-a23-r-pinctrl", },
{}
};
-MODULE_DEVICE_TABLE(of, sun8i_a23_r_pinctrl_match);
static struct platform_driver sun8i_a23_r_pinctrl_driver = {
.probe = sun8i_a23_r_pinctrl_probe,
@@ -132,10 +131,4 @@ static struct platform_driver sun8i_a23_
.of_match_table = sun8i_a23_r_pinctrl_match,
},
};
-module_platform_driver(sun8i_a23_r_pinctrl_driver);
-
-MODULE_AUTHOR("Chen-Yu Tsai <wens@csie.org>");
-MODULE_AUTHOR("Boris Brezillon <boris.brezillon@free-electrons.com");
-MODULE_AUTHOR("Maxime Ripard <maxime.ripard@free-electrons.com");
-MODULE_DESCRIPTION("Allwinner A23 R_PIO pinctrl driver");
-MODULE_LICENSE("GPL");
+builtin_platform_driver(sun8i_a23_r_pinctrl_driver);
--- a/drivers/pinctrl/sunxi/pinctrl-sun8i-a23.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun8i-a23.c
@@ -14,7 +14,7 @@
* warranty of any kind, whether express or implied.
*/
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -575,7 +575,6 @@ static const struct of_device_id sun8i_a
{ .compatible = "allwinner,sun8i-a23-pinctrl", },
{}
};
-MODULE_DEVICE_TABLE(of, sun8i_a23_pinctrl_match);
static struct platform_driver sun8i_a23_pinctrl_driver = {
.probe = sun8i_a23_pinctrl_probe,
@@ -584,9 +583,4 @@ static struct platform_driver sun8i_a23_
.of_match_table = sun8i_a23_pinctrl_match,
},
};
-module_platform_driver(sun8i_a23_pinctrl_driver);
-
-MODULE_AUTHOR("Chen-Yu Tsai <wens@csie.org>");
-MODULE_AUTHOR("Maxime Ripard <maxime.ripard@free-electrons.com");
-MODULE_DESCRIPTION("Allwinner A23 pinctrl driver");
-MODULE_LICENSE("GPL");
+builtin_platform_driver(sun8i_a23_pinctrl_driver);
--- a/drivers/pinctrl/sunxi/pinctrl-sun8i-a33.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun8i-a33.c
@@ -12,7 +12,7 @@
* warranty of any kind, whether express or implied.
*/
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -498,7 +498,6 @@ static const struct of_device_id sun8i_a
{ .compatible = "allwinner,sun8i-a33-pinctrl", },
{}
};
-MODULE_DEVICE_TABLE(of, sun8i_a33_pinctrl_match);
static struct platform_driver sun8i_a33_pinctrl_driver = {
.probe = sun8i_a33_pinctrl_probe,
@@ -507,8 +506,4 @@ static struct platform_driver sun8i_a33_
.of_match_table = sun8i_a33_pinctrl_match,
},
};
-module_platform_driver(sun8i_a33_pinctrl_driver);
-
-MODULE_AUTHOR("Vishnu Patekar <vishnupatekar0510@gmail.com>");
-MODULE_DESCRIPTION("Allwinner a33 pinctrl driver");
-MODULE_LICENSE("GPL");
+builtin_platform_driver(sun8i_a33_pinctrl_driver);
--- a/drivers/pinctrl/sunxi/pinctrl-sun8i-a83t.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun8i-a83t.c
@@ -12,7 +12,7 @@
* warranty of any kind, whether express or implied.
*/
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -587,7 +587,6 @@ static const struct of_device_id sun8i_a
{ .compatible = "allwinner,sun8i-a83t-pinctrl", },
{}
};
-MODULE_DEVICE_TABLE(of, sun8i_a83t_pinctrl_match);
static struct platform_driver sun8i_a83t_pinctrl_driver = {
.probe = sun8i_a83t_pinctrl_probe,
@@ -596,8 +595,4 @@ static struct platform_driver sun8i_a83t
.of_match_table = sun8i_a83t_pinctrl_match,
},
};
-module_platform_driver(sun8i_a83t_pinctrl_driver);
-
-MODULE_AUTHOR("Vishnu Patekar <vishnupatekar0510@gmail.com>");
-MODULE_DESCRIPTION("Allwinner a83t pinctrl driver");
-MODULE_LICENSE("GPL");
+builtin_platform_driver(sun8i_a83t_pinctrl_driver);
--- a/drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c
@@ -10,7 +10,7 @@
* warranty of any kind, whether express or implied.
*/
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -733,7 +733,6 @@ static const struct of_device_id sun9i_a
{ .compatible = "allwinner,sun9i-a80-pinctrl", },
{}
};
-MODULE_DEVICE_TABLE(of, sun9i_a80_pinctrl_match);
static struct platform_driver sun9i_a80_pinctrl_driver = {
.probe = sun9i_a80_pinctrl_probe,
@@ -742,8 +741,4 @@ static struct platform_driver sun9i_a80_
.of_match_table = sun9i_a80_pinctrl_match,
},
};
-module_platform_driver(sun9i_a80_pinctrl_driver);
-
-MODULE_AUTHOR("Maxime Ripard <maxime.ripard@free-electrons.com>");
-MODULE_DESCRIPTION("Allwinner A80 pinctrl driver");
-MODULE_LICENSE("GPL");
+builtin_platform_driver(sun9i_a80_pinctrl_driver);
|