diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 17:02:24 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:04 -0500 |
| commit | 351a102dbf489d0e9c9b0883f76e2a94d895503d (patch) | |
| tree | 7b7e63506fa400a5e25671649122c5d5060cbede | |
| parent | 3d68dfe32472fc74cabaa576feb69c3e03f9d4cf (diff) | |
ARM: drivers: 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,
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: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
43 files changed, 131 insertions, 134 deletions
diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c index 9173d112ea01..e57d7e5bf96a 100644 --- a/arch/arm/common/sa1111.c +++ b/arch/arm/common/sa1111.c | |||
| @@ -686,8 +686,7 @@ sa1111_init_one_child(struct sa1111 *sachip, struct resource *parent, | |||
| 686 | * %-EINVAL no platform data passed | 686 | * %-EINVAL no platform data passed |
| 687 | * %0 successful. | 687 | * %0 successful. |
| 688 | */ | 688 | */ |
| 689 | static int __devinit | 689 | static int __sa1111_probe(struct device *me, struct resource *mem, int irq) |
| 690 | __sa1111_probe(struct device *me, struct resource *mem, int irq) | ||
| 691 | { | 690 | { |
| 692 | struct sa1111_platform_data *pd = me->platform_data; | 691 | struct sa1111_platform_data *pd = me->platform_data; |
| 693 | struct sa1111 *sachip; | 692 | struct sa1111 *sachip; |
| @@ -1011,7 +1010,7 @@ static int sa1111_resume(struct platform_device *dev) | |||
| 1011 | #define sa1111_resume NULL | 1010 | #define sa1111_resume NULL |
| 1012 | #endif | 1011 | #endif |
| 1013 | 1012 | ||
| 1014 | static int __devinit sa1111_probe(struct platform_device *pdev) | 1013 | static int sa1111_probe(struct platform_device *pdev) |
| 1015 | { | 1014 | { |
| 1016 | struct resource *mem; | 1015 | struct resource *mem; |
| 1017 | int irq; | 1016 | int irq; |
diff --git a/arch/arm/common/scoop.c b/arch/arm/common/scoop.c index 0c616d5fcb0f..a5c3dc38aa18 100644 --- a/arch/arm/common/scoop.c +++ b/arch/arm/common/scoop.c | |||
| @@ -176,7 +176,7 @@ static int scoop_resume(struct platform_device *dev) | |||
| 176 | #define scoop_resume NULL | 176 | #define scoop_resume NULL |
| 177 | #endif | 177 | #endif |
| 178 | 178 | ||
| 179 | static int __devinit scoop_probe(struct platform_device *pdev) | 179 | static int scoop_probe(struct platform_device *pdev) |
| 180 | { | 180 | { |
| 181 | struct scoop_dev *devptr; | 181 | struct scoop_dev *devptr; |
| 182 | struct scoop_config *inf; | 182 | struct scoop_config *inf; |
| @@ -243,7 +243,7 @@ err_ioremap: | |||
| 243 | return ret; | 243 | return ret; |
| 244 | } | 244 | } |
| 245 | 245 | ||
| 246 | static int __devexit scoop_remove(struct platform_device *pdev) | 246 | static int scoop_remove(struct platform_device *pdev) |
| 247 | { | 247 | { |
| 248 | struct scoop_dev *sdev = platform_get_drvdata(pdev); | 248 | struct scoop_dev *sdev = platform_get_drvdata(pdev); |
| 249 | int ret; | 249 | int ret; |
| @@ -268,7 +268,7 @@ static int __devexit scoop_remove(struct platform_device *pdev) | |||
| 268 | 268 | ||
| 269 | static struct platform_driver scoop_driver = { | 269 | static struct platform_driver scoop_driver = { |
| 270 | .probe = scoop_probe, | 270 | .probe = scoop_probe, |
| 271 | .remove = __devexit_p(scoop_remove), | 271 | .remove = scoop_remove, |
| 272 | .suspend = scoop_suspend, | 272 | .suspend = scoop_suspend, |
| 273 | .resume = scoop_resume, | 273 | .resume = scoop_resume, |
| 274 | .driver = { | 274 | .driver = { |
diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c index 9b722612553d..379cf3292390 100644 --- a/arch/arm/kernel/bios32.c +++ b/arch/arm/kernel/bios32.c | |||
| @@ -78,7 +78,7 @@ void pcibios_report_status(u_int status_mask, int warn) | |||
| 78 | * Bug 3 is responsible for the sound DMA grinding to a halt. We now | 78 | * Bug 3 is responsible for the sound DMA grinding to a halt. We now |
| 79 | * live with bug 2. | 79 | * live with bug 2. |
| 80 | */ | 80 | */ |
| 81 | static void __devinit pci_fixup_83c553(struct pci_dev *dev) | 81 | static void pci_fixup_83c553(struct pci_dev *dev) |
| 82 | { | 82 | { |
| 83 | /* | 83 | /* |
| 84 | * Set memory region to start at address 0, and enable IO | 84 | * Set memory region to start at address 0, and enable IO |
| @@ -130,7 +130,7 @@ static void __devinit pci_fixup_83c553(struct pci_dev *dev) | |||
| 130 | } | 130 | } |
| 131 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_WINBOND, PCI_DEVICE_ID_WINBOND_83C553, pci_fixup_83c553); | 131 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_WINBOND, PCI_DEVICE_ID_WINBOND_83C553, pci_fixup_83c553); |
| 132 | 132 | ||
| 133 | static void __devinit pci_fixup_unassign(struct pci_dev *dev) | 133 | static void pci_fixup_unassign(struct pci_dev *dev) |
| 134 | { | 134 | { |
| 135 | dev->resource[0].end -= dev->resource[0].start; | 135 | dev->resource[0].end -= dev->resource[0].start; |
| 136 | dev->resource[0].start = 0; | 136 | dev->resource[0].start = 0; |
| @@ -142,7 +142,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_WINBOND2, PCI_DEVICE_ID_WINBOND2_89C940F, | |||
| 142 | * if it is the host bridge by marking it as such. These resources are of | 142 | * if it is the host bridge by marking it as such. These resources are of |
| 143 | * no consequence to the PCI layer (they are handled elsewhere). | 143 | * no consequence to the PCI layer (they are handled elsewhere). |
| 144 | */ | 144 | */ |
| 145 | static void __devinit pci_fixup_dec21285(struct pci_dev *dev) | 145 | static void pci_fixup_dec21285(struct pci_dev *dev) |
| 146 | { | 146 | { |
| 147 | int i; | 147 | int i; |
| 148 | 148 | ||
| @@ -161,7 +161,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_21285, pci_fixup_d | |||
| 161 | /* | 161 | /* |
| 162 | * PCI IDE controllers use non-standard I/O port decoding, respect it. | 162 | * PCI IDE controllers use non-standard I/O port decoding, respect it. |
| 163 | */ | 163 | */ |
| 164 | static void __devinit pci_fixup_ide_bases(struct pci_dev *dev) | 164 | static void pci_fixup_ide_bases(struct pci_dev *dev) |
| 165 | { | 165 | { |
| 166 | struct resource *r; | 166 | struct resource *r; |
| 167 | int i; | 167 | int i; |
| @@ -182,7 +182,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pci_fixup_ide_bases); | |||
| 182 | /* | 182 | /* |
| 183 | * Put the DEC21142 to sleep | 183 | * Put the DEC21142 to sleep |
| 184 | */ | 184 | */ |
| 185 | static void __devinit pci_fixup_dec21142(struct pci_dev *dev) | 185 | static void pci_fixup_dec21142(struct pci_dev *dev) |
| 186 | { | 186 | { |
| 187 | pci_write_config_dword(dev, 0x40, 0x80000000); | 187 | pci_write_config_dword(dev, 0x40, 0x80000000); |
| 188 | } | 188 | } |
| @@ -204,7 +204,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_21142, pci_fixup_d | |||
| 204 | * functional. However, The CY82C693U _does not work_ in bus | 204 | * functional. However, The CY82C693U _does not work_ in bus |
| 205 | * master mode without locking the PCI bus solid. | 205 | * master mode without locking the PCI bus solid. |
| 206 | */ | 206 | */ |
| 207 | static void __devinit pci_fixup_cy82c693(struct pci_dev *dev) | 207 | static void pci_fixup_cy82c693(struct pci_dev *dev) |
| 208 | { | 208 | { |
| 209 | if ((dev->class >> 8) == PCI_CLASS_STORAGE_IDE) { | 209 | if ((dev->class >> 8) == PCI_CLASS_STORAGE_IDE) { |
| 210 | u32 base0, base1; | 210 | u32 base0, base1; |
| @@ -254,7 +254,7 @@ static void __devinit pci_fixup_cy82c693(struct pci_dev *dev) | |||
| 254 | } | 254 | } |
| 255 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_CONTAQ, PCI_DEVICE_ID_CONTAQ_82C693, pci_fixup_cy82c693); | 255 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_CONTAQ, PCI_DEVICE_ID_CONTAQ_82C693, pci_fixup_cy82c693); |
| 256 | 256 | ||
| 257 | static void __devinit pci_fixup_it8152(struct pci_dev *dev) | 257 | static void pci_fixup_it8152(struct pci_dev *dev) |
| 258 | { | 258 | { |
| 259 | int i; | 259 | int i; |
| 260 | /* fixup for ITE 8152 devices */ | 260 | /* fixup for ITE 8152 devices */ |
| @@ -361,9 +361,7 @@ void | |||
