aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2014-10-20 10:20:20 -0400
committerWolfram Sang <wsa@the-dreams.de>2014-10-20 10:20:20 -0400
commiteff54802fe981a378555aebd86af0d11e83899ff (patch)
tree42bf305ca5bf70db91effbc73939c5731b44f328 /drivers/char/hw_random
parent06861ab52b4c355d65c8a72aa3817261158cc409 (diff)
char: hw_random: drop owner assignment from platform_drivers
A platform_driver does not need to set an owner, it will be populated by the driver core. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/char/hw_random')
-rw-r--r--drivers/char/hw_random/atmel-rng.c1
-rw-r--r--drivers/char/hw_random/bcm2835-rng.c1
-rw-r--r--drivers/char/hw_random/bcm63xx-rng.c1
-rw-r--r--drivers/char/hw_random/exynos-rng.c1
-rw-r--r--drivers/char/hw_random/msm-rng.c1
-rw-r--r--drivers/char/hw_random/mxc-rnga.c1
-rw-r--r--drivers/char/hw_random/n2-drv.c1
-rw-r--r--drivers/char/hw_random/octeon-rng.c1
-rw-r--r--drivers/char/hw_random/omap-rng.c1
-rw-r--r--drivers/char/hw_random/omap3-rom-rng.c1
-rw-r--r--drivers/char/hw_random/pasemi-rng.c1
-rw-r--r--drivers/char/hw_random/ppc4xx-rng.c1
-rw-r--r--drivers/char/hw_random/timeriomem-rng.c1
-rw-r--r--drivers/char/hw_random/tx4939-rng.c1
14 files changed, 0 insertions, 14 deletions
diff --git a/drivers/char/hw_random/atmel-rng.c b/drivers/char/hw_random/atmel-rng.c
index 851bc7e20ad2..25a4de21feac 100644
--- a/drivers/char/hw_random/atmel-rng.c
+++ b/drivers/char/hw_random/atmel-rng.c
@@ -128,7 +128,6 @@ static struct platform_driver atmel_trng_driver = {
128 .remove = atmel_trng_remove, 128 .remove = atmel_trng_remove,
129 .driver = { 129 .driver = {
130 .name = "atmel-trng", 130 .name = "atmel-trng",
131 .owner = THIS_MODULE,
132#ifdef CONFIG_PM 131#ifdef CONFIG_PM
133 .pm = &atmel_trng_pm_ops, 132 .pm = &atmel_trng_pm_ops,
134#endif /* CONFIG_PM */ 133#endif /* CONFIG_PM */
diff --git a/drivers/char/hw_random/bcm2835-rng.c b/drivers/char/hw_random/bcm2835-rng.c
index e900961cdd2e..7192ec25f667 100644
--- a/drivers/char/hw_random/bcm2835-rng.c
+++ b/drivers/char/hw_random/bcm2835-rng.c
@@ -99,7 +99,6 @@ MODULE_DEVICE_TABLE(of, bcm2835_rng_of_match);
99static struct platform_driver bcm2835_rng_driver = { 99static struct platform_driver bcm2835_rng_driver = {
100 .driver = { 100 .driver = {
101 .name = "bcm2835-rng", 101 .name = "bcm2835-rng",
102 .owner = THIS_MODULE,
103 .of_match_table = bcm2835_rng_of_match, 102 .of_match_table = bcm2835_rng_of_match,
104 }, 103 },
105 .probe = bcm2835_rng_probe, 104 .probe = bcm2835_rng_probe,
diff --git a/drivers/char/hw_random/bcm63xx-rng.c b/drivers/char/hw_random/bcm63xx-rng.c
index 36581ea562cb..ba6a65ac023b 100644
--- a/drivers/char/hw_random/bcm63xx-rng.c
+++ b/drivers/char/hw_random/bcm63xx-rng.c
@@ -162,7 +162,6 @@ static struct platform_driver bcm63xx_rng_driver = {
162 .remove = bcm63xx_rng_remove, 162 .remove = bcm63xx_rng_remove,
163 .driver = { 163 .driver = {
164 .name = "bcm63xx-rng", 164 .name = "bcm63xx-rng",
165 .owner = THIS_MODULE,
166 }, 165 },
167}; 166};
168 167
diff --git a/drivers/char/hw_random/exynos-rng.c b/drivers/char/hw_random/exynos-rng.c
index 9f8277cc44b4..beaa157bf43e 100644
--- a/drivers/char/hw_random/exynos-rng.c
+++ b/drivers/char/hw_random/exynos-rng.c
@@ -169,7 +169,6 @@ static UNIVERSAL_DEV_PM_OPS(exynos_rng_pm_ops, exynos_rng_runtime_suspend,
169static struct platform_driver exynos_rng_driver = { 169static struct platform_driver exynos_rng_driver = {
170 .driver = { 170 .driver = {
171 .name = "exynos-rng", 171 .name = "exynos-rng",
172 .owner = THIS_MODULE,
173 .pm = &exynos_rng_pm_ops, 172 .pm = &exynos_rng_pm_ops,
174 }, 173 },
175 .probe = exynos_rng_probe, 174 .probe = exynos_rng_probe,
diff --git a/drivers/char/hw_random/msm-rng.c b/drivers/char/hw_random/msm-rng.c
index 148521e51dc6..cea1c703d62f 100644
--- a/drivers/char/hw_random/msm-rng.c
+++ b/drivers/char/hw_random/msm-rng.c
@@ -185,7 +185,6 @@ static struct platform_driver msm_rng_driver = {
185 .remove = msm_rng_remove, 185 .remove = msm_rng_remove,
186 .driver = { 186 .driver = {
187 .name = KBUILD_MODNAME, 187 .name = KBUILD_MODNAME,
188 .owner = THIS_MODULE,
189 .of_match_table = of_match_ptr(msm_rng_of_match), 188 .of_match_table = of_match_ptr(msm_rng_of_match),
190 } 189 }
191}; 190};
diff --git a/drivers/char/hw_random/mxc-rnga.c b/drivers/char/hw_random/mxc-rnga.c
index 6a86b6f56af2..6cbb72ec6013 100644
--- a/drivers/char/hw_random/mxc-rnga.c
+++ b/drivers/char/hw_random/mxc-rnga.c
@@ -206,7 +206,6 @@ static int __exit mxc_rnga_remove(struct platform_device *pdev)
206static struct platform_driver mxc_rnga_driver = { 206static struct platform_driver mxc_rnga_driver = {
207 .driver = { 207 .driver = {
208 .name = "mxc_rnga", 208 .name = "mxc_rnga",
209 .owner = THIS_MODULE,
210 }, 209 },
211 .remove = __exit_p(mxc_rnga_remove), 210 .remove = __exit_p(mxc_rnga_remove),
212}; 211};
diff --git a/drivers/char/hw_random/n2-drv.c b/drivers/char/hw_random/n2-drv.c
index 292a5889f675..843d6f6aee7a 100644
--- a/drivers/char/hw_random/n2-drv.c
+++ b/drivers/char/hw_random/n2-drv.c
@@ -750,7 +750,6 @@ MODULE_DEVICE_TABLE(of, n2rng_match);
750static struct platform_driver n2rng_driver = { 750static struct platform_driver n2rng_driver = {
751 .driver = { 751 .driver = {
752 .name = "n2rng", 752 .name = "n2rng",
753 .owner = THIS_MODULE,
754 .of_match_table = n2rng_match, 753 .of_match_table = n2rng_match,
755 }, 754 },
756 .probe = n2rng_probe, 755 .probe = n2rng_probe,
diff --git a/drivers/char/hw_random/octeon-rng.c b/drivers/char/hw_random/octeon-rng.c
index b5cc3420c659..be1c3f607398 100644
--- a/drivers/char/hw_random/octeon-rng.c
+++ b/drivers/char/hw_random/octeon-rng.c
@@ -117,7 +117,6 @@ static int __exit octeon_rng_remove(struct platform_device *pdev)
117static struct platform_driver octeon_rng_driver = { 117static struct platform_driver octeon_rng_driver = {
118 .driver = { 118 .driver = {
119 .name = "octeon_rng", 119 .name = "octeon_rng",
120 .owner = THIS_MODULE,
121 }, 120 },
122 .probe = octeon_rng_probe, 121 .probe = octeon_rng_probe,
123 .remove = __exit_p(octeon_rng_remove), 122 .remove = __exit_p(octeon_rng_remove),
diff --git a/drivers/char/hw_random/omap-rng.c b/drivers/char/hw_random/omap-rng.c
index f66ea258382f..d14dcf788f17 100644
--- a/drivers/char/hw_random/omap-rng.c
+++ b/drivers/char/hw_random/omap-rng.c
@@ -456,7 +456,6 @@ static SIMPLE_DEV_PM_OPS(omap_rng_pm, omap_rng_suspend, omap_rng_resume);
456static struct platform_driver omap_rng_driver = { 456static struct platform_driver omap_rng_driver = {
457 .driver = { 457 .driver = {
458 .name = "omap_rng", 458 .name = "omap_rng",
459 .owner = THIS_MODULE,
460 .pm = OMAP_RNG_PM, 459 .pm = OMAP_RNG_PM,
461 .of_match_table = of_match_ptr(omap_rng_of_match), 460 .of_match_table = of_match_ptr(omap_rng_of_match),
462 }, 461 },
diff --git a/drivers/char/hw_random/omap3-rom-rng.c b/drivers/char/hw_random/omap3-rom-rng.c
index 6f2eaffed623..a405cdcd8dd2 100644
--- a/drivers/char/hw_random/omap3-rom-rng.c
+++ b/drivers/char/hw_random/omap3-rom-rng.c
@@ -126,7 +126,6 @@ static int omap3_rom_rng_remove(struct platform_device *pdev)
126static struct platform_driver omap3_rom_rng_driver = { 126static struct platform_driver omap3_rom_rng_driver = {
127 .driver = { 127 .driver = {
128 .name = "omap3-rom-rng", 128 .name = "omap3-rom-rng",
129 .owner = THIS_MODULE,
130 }, 129 },
131 .probe = omap3_rom_rng_probe, 130 .probe = omap3_rom_rng_probe,
132 .remove = omap3_rom_rng_remove, 131 .remove = omap3_rom_rng_remove,
diff --git a/drivers/char/hw_random/pasemi-rng.c b/drivers/char/hw_random/pasemi-rng.c
index c0347d1dded0..3eb7bdd7f93b 100644
--- a/drivers/char/hw_random/pasemi-rng.c
+++ b/drivers/char/hw_random/pasemi-rng.c
@@ -142,7 +142,6 @@ static struct of_device_id rng_match[] = {
142static struct platform_driver rng_driver = { 142static struct platform_driver rng_driver = {
143 .driver = { 143 .driver = {
144 .name = "pasemi-rng", 144 .name = "pasemi-rng",
145 .owner = THIS_MODULE,
146 .of_match_table = rng_match, 145 .of_match_table = rng_match,
147 }, 146 },
148 .probe = rng_probe, 147 .probe = rng_probe,
diff --git a/drivers/char/hw_random/ppc4xx-rng.c b/drivers/char/hw_random/ppc4xx-rng.c
index 521f76b0934b..c85d31a5f9e3 100644
--- a/drivers/char/hw_random/ppc4xx-rng.c
+++ b/drivers/char/hw_random/ppc4xx-rng.c
@@ -133,7 +133,6 @@ static struct of_device_id ppc4xx_rng_match[] = {
133static struct platform_driver ppc4xx_rng_driver = { 133static struct platform_driver ppc4xx_rng_driver = {
134 .driver = { 134 .driver = {
135 .name = MODULE_NAME, 135 .name = MODULE_NAME,
136 .owner = THIS_MODULE,
137 .of_match_table = ppc4xx_rng_match, 136 .of_match_table = ppc4xx_rng_match,
138 }, 137 },
139 .probe = ppc4xx_rng_probe, 138 .probe = ppc4xx_rng_probe,
diff --git a/drivers/char/hw_random/timeriomem-rng.c b/drivers/char/hw_random/timeriomem-rng.c
index b6ab9ac3f34d..cf37db263ecd 100644
--- a/drivers/char/hw_random/timeriomem-rng.c
+++ b/drivers/char/hw_random/timeriomem-rng.c
@@ -200,7 +200,6 @@ MODULE_DEVICE_TABLE(of, timeriomem_rng_match);
200static struct platform_driver timeriomem_rng_driver = { 200static struct platform_driver timeriomem_rng_driver = {
201 .driver = { 201 .driver = {
202 .name = "timeriomem_rng", 202 .name = "timeriomem_rng",
203 .owner = THIS_MODULE,
204 .of_match_table = timeriomem_rng_match, 203 .of_match_table = timeriomem_rng_match,
205 }, 204 },
206 .probe = timeriomem_rng_probe, 205 .probe = timeriomem_rng_probe,
diff --git a/drivers/char/hw_random/tx4939-rng.c b/drivers/char/hw_random/tx4939-rng.c
index 09c5fbea2b93..a7b694913416 100644
--- a/drivers/char/hw_random/tx4939-rng.c
+++ b/drivers/char/hw_random/tx4939-rng.c
@@ -158,7 +158,6 @@ static int __exit tx4939_rng_remove(struct platform_device *dev)
158static struct platform_driver tx4939_rng_driver = { 158static struct platform_driver tx4939_rng_driver = {
159 .driver = { 159 .driver = {
160 .name = "tx4939-rng", 160 .name = "tx4939-rng",
161 .owner = THIS_MODULE,
162 }, 161 },
163 .remove = tx4939_rng_remove, 162 .remove = tx4939_rng_remove,
164}; 163};