diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 18:12:08 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:15 -0500 |
commit | bcd2982a0e2af8d0506271b439af4b568fc33fdc (patch) | |
tree | 1806ed7f69375fbef68e46c8ee5277fd5b18dced /drivers/char/hw_random | |
parent | 1850514b3ebde0f5eeedbe918a7d0d344b752653 (diff) |
Drivers: char: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
markings need to be removed.
This change removes the use of __devinit, __devexit_p, __devinitdata,
__devinitconst, and __devexit from these drivers.
Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: David Airlie <airlied@linux.ie>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/hw_random')
-rw-r--r-- | drivers/char/hw_random/atmel-rng.c | 2 | ||||
-rw-r--r-- | drivers/char/hw_random/bcm63xx-rng.c | 4 | ||||
-rw-r--r-- | drivers/char/hw_random/exynos-rng.c | 4 | ||||
-rw-r--r-- | drivers/char/hw_random/n2-drv.c | 6 | ||||
-rw-r--r-- | drivers/char/hw_random/octeon-rng.c | 2 | ||||
-rw-r--r-- | drivers/char/hw_random/omap-rng.c | 2 | ||||
-rw-r--r-- | drivers/char/hw_random/pasemi-rng.c | 2 | ||||
-rw-r--r-- | drivers/char/hw_random/picoxcell-rng.c | 2 | ||||
-rw-r--r-- | drivers/char/hw_random/ppc4xx-rng.c | 2 | ||||
-rw-r--r-- | drivers/char/hw_random/timeriomem-rng.c | 4 | ||||
-rw-r--r-- | drivers/char/hw_random/virtio-rng.c | 2 |
11 files changed, 16 insertions, 16 deletions
diff --git a/drivers/char/hw_random/atmel-rng.c b/drivers/char/hw_random/atmel-rng.c index 5a4a6e70478b..7c73d4aca36b 100644 --- a/drivers/char/hw_random/atmel-rng.c +++ b/drivers/char/hw_random/atmel-rng.c | |||
@@ -138,7 +138,7 @@ static const struct dev_pm_ops atmel_trng_pm_ops = { | |||
138 | 138 | ||
139 | static struct platform_driver atmel_trng_driver = { | 139 | static struct platform_driver atmel_trng_driver = { |
140 | .probe = atmel_trng_probe, | 140 | .probe = atmel_trng_probe, |
141 | .remove = __devexit_p(atmel_trng_remove), | 141 | .remove = atmel_trng_remove, |
142 | .driver = { | 142 | .driver = { |
143 | .name = "atmel-trng", | 143 | .name = "atmel-trng", |
144 | .owner = THIS_MODULE, | 144 | .owner = THIS_MODULE, |
diff --git a/drivers/char/hw_random/bcm63xx-rng.c b/drivers/char/hw_random/bcm63xx-rng.c index ae95bcb18d4a..f343b7d0dfa1 100644 --- a/drivers/char/hw_random/bcm63xx-rng.c +++ b/drivers/char/hw_random/bcm63xx-rng.c | |||
@@ -61,7 +61,7 @@ static int bcm63xx_rng_data_read(struct hwrng *rng, u32 *data) | |||
61 | return 4; | 61 | return 4; |
62 | } | 62 | } |
63 | 63 | ||
64 | static int __devinit bcm63xx_rng_probe(struct platform_device *pdev) | 64 | static int bcm63xx_rng_probe(struct platform_device *pdev) |
65 | { | 65 | { |
66 | struct resource *r; | 66 | struct resource *r; |
67 | struct clk *clk; | 67 | struct clk *clk; |
@@ -161,7 +161,7 @@ static int bcm63xx_rng_remove(struct platform_device *pdev) | |||
161 | 161 | ||
162 | static struct platform_driver bcm63xx_rng_driver = { | 162 | static struct platform_driver bcm63xx_rng_driver = { |
163 | .probe = bcm63xx_rng_probe, | 163 | .probe = bcm63xx_rng_probe, |
164 | .remove = __devexit_p(bcm63xx_rng_remove), | 164 | .remove = bcm63xx_rng_remove, |
165 | .driver = { | 165 | .driver = { |
166 | .name = "bcm63xx-rng", | 166 | .name = "bcm63xx-rng", |
167 | .owner = THIS_MODULE, | 167 | .owner = THIS_MODULE, |
diff --git a/drivers/char/hw_random/exynos-rng.c b/drivers/char/hw_random/exynos-rng.c index bdc852ea7632..48bbfeca4b5d 100644 --- a/drivers/char/hw_random/exynos-rng.c +++ b/drivers/char/hw_random/exynos-rng.c | |||
@@ -101,7 +101,7 @@ static int exynos_read(struct hwrng *rng, void *buf, | |||
101 | return 4; | 101 | return 4; |
102 | } | 102 | } |
103 | 103 | ||
104 | static int __devinit exynos_rng_probe(struct platform_device *pdev) | 104 | static int exynos_rng_probe(struct platform_device *pdev) |
105 | { | 105 | { |
106 | struct exynos_rng *exynos_rng; | 106 | struct exynos_rng *exynos_rng; |
107 | 107 | ||
@@ -172,7 +172,7 @@ static struct platform_driver exynos_rng_driver = { | |||
172 | .pm = &exynos_rng_pm_ops, | 172 | .pm = &exynos_rng_pm_ops, |
173 | }, | 173 | }, |
174 | .probe = exynos_rng_probe, | 174 | .probe = exynos_rng_probe, |
175 | .remove = __devexit_p(exynos_rng_remove), | 175 | .remove = exynos_rng_remove, |
176 | }; | 176 | }; |
177 | 177 | ||
178 | module_platform_driver(exynos_rng_driver); | 178 | module_platform_driver(exynos_rng_driver); |
diff --git a/drivers/char/hw_random/n2-drv.c b/drivers/char/hw_random/n2-drv.c index d68a72a08b51..20b962e1d832 100644 --- a/drivers/char/hw_random/n2-drv.c +++ b/drivers/char/hw_random/n2-drv.c | |||
@@ -611,7 +611,7 @@ static void n2rng_work(struct work_struct *work) | |||
611 | schedule_delayed_work(&np->work, HZ * 2); | 611 | schedule_delayed_work(&np->work, HZ * 2); |
612 | } | 612 | } |
613 | 613 | ||
614 | static void __devinit n2rng_driver_version(void) | 614 | static void n2rng_driver_version(void) |
615 | { | 615 | { |
616 | static int n2rng_version_printed; | 616 | static int n2rng_version_printed; |
617 | 617 | ||
@@ -620,7 +620,7 @@ static void __devinit n2rng_driver_version(void) | |||
620 | } | 620 | } |
621 | 621 | ||
622 | static const struct of_device_id n2rng_match[]; | 622 | static const struct of_device_id n2rng_match[]; |
623 | static int __devinit n2rng_probe(struct platform_device *op) | 623 | static int n2rng_probe(struct platform_device *op) |
624 | { | 624 | { |
625 | const struct of_device_id *match; | 625 | const struct of_device_id *match; |
626 | int multi_capable; | 626 | int multi_capable; |
@@ -767,7 +767,7 @@ static struct platform_driver n2rng_driver = { | |||
767 | .of_match_table = n2rng_match, | 767 | .of_match_table = n2rng_match, |
768 | }, | 768 | }, |
769 | .probe = n2rng_probe, | 769 | .probe = n2rng_probe, |
770 | .remove = __devexit_p(n2rng_remove), | 770 | .remove = n2rng_remove, |
771 | }; | 771 | }; |
772 | 772 | ||
773 | module_platform_driver(n2rng_driver); | 773 | module_platform_driver(n2rng_driver); |
diff --git a/drivers/char/hw_random/octeon-rng.c b/drivers/char/hw_random/octeon-rng.c index 5c34c092af71..1eada566ca70 100644 --- a/drivers/char/hw_random/octeon-rng.c +++ b/drivers/char/hw_random/octeon-rng.c | |||
@@ -56,7 +56,7 @@ static int octeon_rng_data_read(struct hwrng *rng, u32 *data) | |||
56 | return sizeof(u32); | 56 | return sizeof(u32); |
57 | } | 57 | } |
58 | 58 | ||
59 | static int __devinit octeon_rng_probe(struct platform_device *pdev) | 59 | static int octeon_rng_probe(struct platform_device *pdev) |
60 | { | 60 | { |
61 | struct resource *res_ports; | 61 | struct resource *res_ports; |
62 | struct resource *res_result; | 62 | struct resource *res_result; |
diff --git a/drivers/char/hw_random/omap-rng.c b/drivers/char/hw_random/omap-rng.c index 45e467dcc8c8..d8c54e253761 100644 --- a/drivers/char/hw_random/omap-rng.c +++ b/drivers/char/hw_random/omap-rng.c | |||
@@ -104,7 +104,7 @@ static struct hwrng omap_rng_ops = { | |||
104 | .data_read = omap_rng_data_read, | 104 | .data_read = omap_rng_data_read, |
105 | }; | 105 | }; |
106 | 106 | ||
107 | static int __devinit omap_rng_probe(struct platform_device *pdev) | 107 | static int omap_rng_probe(struct platform_device *pdev) |
108 | { | 108 | { |
109 | struct omap_rng_private_data *priv; | 109 | struct omap_rng_private_data *priv; |
110 | int ret; | 110 | int ret; |
diff --git a/drivers/char/hw_random/pasemi-rng.c b/drivers/char/hw_random/pasemi-rng.c index a1f70407cc9e..c6df5b29af08 100644 --- a/drivers/char/hw_random/pasemi-rng.c +++ b/drivers/char/hw_random/pasemi-rng.c | |||
@@ -94,7 +94,7 @@ static struct hwrng pasemi_rng = { | |||
94 | .data_read = pasemi_rng_data_read, | 94 | .data_read = pasemi_rng_data_read, |
95 | }; | 95 | }; |
96 | 96 | ||
97 | static int __devinit rng_probe(struct platform_device *ofdev) | 97 | static int rng_probe(struct platform_device *ofdev) |
98 | { | 98 | { |
99 | void __iomem *rng_regs; | 99 | void __iomem *rng_regs; |
100 | struct device_node *rng_np = ofdev->dev.of_node; | 100 | struct device_node *rng_np = ofdev->dev.of_node; |
diff --git a/drivers/char/hw_random/picoxcell-rng.c b/drivers/char/hw_random/picoxcell-rng.c index d4b24c1dd48e..973b95113edf 100644 --- a/drivers/char/hw_random/picoxcell-rng.c +++ b/drivers/char/hw_random/picoxcell-rng.c | |||
@@ -181,7 +181,7 @@ static const struct dev_pm_ops picoxcell_trng_pm_ops = { | |||
181 | 181 | ||
182 | static struct platform_driver picoxcell_trng_driver = { | 182 | static struct platform_driver picoxcell_trng_driver = { |
183 | .probe = picoxcell_trng_probe, | 183 | .probe = picoxcell_trng_probe, |
184 | .remove = __devexit_p(picoxcell_trng_remove), | 184 | .remove = picoxcell_trng_remove, |
185 | .driver = { | 185 | .driver = { |
186 | .name = "picoxcell-trng", | 186 | .name = "picoxcell-trng", |
187 | .owner = THIS_MODULE, | 187 | .owner = THIS_MODULE, |
diff --git a/drivers/char/hw_random/ppc4xx-rng.c b/drivers/char/hw_random/ppc4xx-rng.c index af6506a69cd9..732c330805fd 100644 --- a/drivers/char/hw_random/ppc4xx-rng.c +++ b/drivers/char/hw_random/ppc4xx-rng.c | |||
@@ -90,7 +90,7 @@ static struct hwrng ppc4xx_rng = { | |||
90 | .data_read = ppc4xx_rng_data_read, | 90 | .data_read = ppc4xx_rng_data_read, |
91 | }; | 91 | }; |
92 | 92 | ||
93 | static int __devinit ppc4xx_rng_probe(struct platform_device *dev) | 93 | static int ppc4xx_rng_probe(struct platform_device *dev) |
94 | { | 94 | { |
95 | void __iomem *rng_regs; | 95 | void __iomem *rng_regs; |
96 | int err = 0; | 96 | int err = 0; |
diff --git a/drivers/char/hw_random/timeriomem-rng.c b/drivers/char/hw_random/timeriomem-rng.c index 3a1abc9417e4..849db199c02c 100644 --- a/drivers/char/hw_random/timeriomem-rng.c +++ b/drivers/char/hw_random/timeriomem-rng.c | |||
@@ -88,7 +88,7 @@ static struct hwrng timeriomem_rng_ops = { | |||
88 | .priv = 0, | 88 | .priv = 0, |
89 | }; | 89 | }; |
90 | 90 | ||
91 | static int __devinit timeriomem_rng_probe(struct platform_device *pdev) | 91 | static int timeriomem_rng_probe(struct platform_device *pdev) |
92 | { | 92 | { |
93 | struct resource *res; | 93 | struct resource *res; |
94 | int ret; | 94 | int ret; |
@@ -146,7 +146,7 @@ static struct platform_driver timeriomem_rng_driver = { | |||
146 | .owner = THIS_MODULE, | 146 | .owner = THIS_MODULE, |
147 | }, | 147 | }, |
148 | .probe = timeriomem_rng_probe, | 148 | .probe = timeriomem_rng_probe, |
149 | .remove = __devexit_p(timeriomem_rng_remove), | 149 | .remove = timeriomem_rng_remove, |
150 | }; | 150 | }; |
151 | 151 | ||
152 | module_platform_driver(timeriomem_rng_driver); | 152 | module_platform_driver(timeriomem_rng_driver); |
diff --git a/drivers/char/hw_random/virtio-rng.c b/drivers/char/hw_random/virtio-rng.c index 621f595f1a98..b65c10395959 100644 --- a/drivers/char/hw_random/virtio-rng.c +++ b/drivers/char/hw_random/virtio-rng.c | |||
@@ -147,7 +147,7 @@ static struct virtio_driver virtio_rng_driver = { | |||
147 | .driver.owner = THIS_MODULE, | 147 | .driver.owner = THIS_MODULE, |
148 | .id_table = id_table, | 148 | .id_table = id_table, |
149 | .probe = virtrng_probe, | 149 | .probe = virtrng_probe, |
150 | .remove = __devexit_p(virtrng_remove), | 150 | .remove = virtrng_remove, |
151 | #ifdef CONFIG_PM | 151 | #ifdef CONFIG_PM |
152 | .freeze = virtrng_freeze, | 152 | .freeze = virtrng_freeze, |
153 | .restore = virtrng_restore, | 153 | .restore = virtrng_restore, |