aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 18:12:59 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:15 -0500
commit0f58a01ddd5e8177255705ba15e64c3b74d67993 (patch)
tree3ac74486247a11f2bc98da40e5be78fbded09192
parentbcd2982a0e2af8d0506271b439af4b568fc33fdc (diff)
Drivers: bcma: 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, 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: "Rafał Miłecki" <zajec5@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/bcma/bcma_private.h6
-rw-r--r--drivers/bcma/driver_gmac_cmn.c2
-rw-r--r--drivers/bcma/driver_pci.c4
-rw-r--r--drivers/bcma/driver_pci_host.c13
-rw-r--r--drivers/bcma/host_pci.c8
-rw-r--r--drivers/bcma/main.c2
-rw-r--r--include/linux/bcma/bcma_driver_gmac_cmn.h2
-rw-r--r--include/linux/bcma/bcma_driver_pci.h2
8 files changed, 19 insertions, 20 deletions
diff --git a/drivers/bcma/bcma_private.h b/drivers/bcma/bcma_private.h
index 4a2d72ec6d43..19e3fbfd5757 100644
--- a/drivers/bcma/bcma_private.h
+++ b/drivers/bcma/bcma_private.h
@@ -22,7 +22,7 @@
22struct bcma_bus; 22struct bcma_bus;
23 23
24/* main.c */ 24/* main.c */
25int __devinit bcma_bus_register(struct bcma_bus *bus); 25int bcma_bus_register(struct bcma_bus *bus);
26void bcma_bus_unregister(struct bcma_bus *bus); 26void bcma_bus_unregister(struct bcma_bus *bus);
27int __init bcma_bus_early_register(struct bcma_bus *bus, 27int __init bcma_bus_early_register(struct bcma_bus *bus,
28 struct bcma_device *core_cc, 28 struct bcma_device *core_cc,
@@ -87,8 +87,8 @@ u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address);
87extern int bcma_chipco_watchdog_register(struct bcma_drv_cc *cc); 87extern int bcma_chipco_watchdog_register(struct bcma_drv_cc *cc);
88 88
89#ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE 89#ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE
90bool __devinit bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc); 90bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc);
91void __devinit bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc); 91void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc);
92#endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */ 92#endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */
93 93
94#ifdef CONFIG_BCMA_DRIVER_GPIO 94#ifdef CONFIG_BCMA_DRIVER_GPIO
diff --git a/drivers/bcma/driver_gmac_cmn.c b/drivers/bcma/driver_gmac_cmn.c
index 834225f65e8f..dcb137926d31 100644
--- a/drivers/bcma/driver_gmac_cmn.c
+++ b/drivers/bcma/driver_gmac_cmn.c
@@ -8,7 +8,7 @@
8#include "bcma_private.h" 8#include "bcma_private.h"
9#include <linux/bcma/bcma.h> 9#include <linux/bcma/bcma.h>
10 10
11void __devinit bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc) 11void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc)
12{ 12{
13 mutex_init(&gc->phy_mutex); 13 mutex_init(&gc->phy_mutex);
14} 14}
diff --git a/drivers/bcma/driver_pci.c b/drivers/bcma/driver_pci.c
index c39ee6d45850..cf7a476a519f 100644
--- a/drivers/bcma/driver_pci.c
+++ b/drivers/bcma/driver_pci.c
@@ -207,14 +207,14 @@ static void bcma_core_pci_config_fixup(struct bcma_drv_pci *pc)
207 * Init. 207 * Init.
208 **************************************************/ 208 **************************************************/
209 209
210static void __devinit bcma_core_pci_clientmode_init(struct bcma_drv_pci *pc) 210static void bcma_core_pci_clientmode_init(struct bcma_drv_pci *pc)
211{ 211{
212 bcma_core_pci_fixcfg(pc); 212 bcma_core_pci_fixcfg(pc);
213 bcma_pcicore_serdes_workaround(pc); 213 bcma_pcicore_serdes_workaround(pc);
214 bcma_core_pci_config_fixup(pc); 214 bcma_core_pci_config_fixup(pc);
215} 215}
216 216
217void __devinit bcma_core_pci_init(struct bcma_drv_pci *pc) 217void bcma_core_pci_init(struct bcma_drv_pci *pc)
218{ 218{
219 if (pc->setup_done) 219 if (pc->setup_done)
220 return; 220 return;
diff --git a/drivers/bcma/driver_pci_host.c b/drivers/bcma/driver_pci_host.c
index e6b5c89469dc..af0c9fabee54 100644
--- a/drivers/bcma/driver_pci_host.c
+++ b/drivers/bcma/driver_pci_host.c
@@ -24,7 +24,7 @@
24#define BCMA_PCI_SLOT_MAX 16 24#define BCMA_PCI_SLOT_MAX 16
25#define PCI_CONFIG_SPACE_SIZE 256 25#define PCI_CONFIG_SPACE_SIZE 256
26 26
27bool __devinit bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc) 27bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc)
28{ 28{
29 struct bcma_bus *bus = pc->core->bus; 29 struct bcma_bus *bus = pc->core->bus;
30 u16 chipid_top; 30 u16 chipid_top;
@@ -264,10 +264,9 @@ static int bcma_core_pci_hostmode_write_config(struct pci_bus *bus,
264} 264}
265 265
266/* return cap_offset if requested capability exists in the PCI config space */ 266/* return cap_offset if requested capability exists in the PCI config space */
267static u8 __devinit bcma_find_pci_capability(struct bcma_drv_pci *pc, 267static u8 bcma_find_pci_capability(struct bcma_drv_pci *pc, unsigned int dev,
268 unsigned int dev, 268 unsigned int func, u8 req_cap_id,
269 unsigned int func, u8 req_cap_id, 269 unsigned char *buf, u32 *buflen)
270 unsigned char *buf, u32 *buflen)
271{ 270{
272 u8 cap_id; 271 u8 cap_id;
273 u8 cap_ptr = 0; 272 u8 cap_ptr = 0;
@@ -334,7 +333,7 @@ static u8 __devinit bcma_find_pci_capability(struct bcma_drv_pci *pc,
334 * Retry Status (CRS) Completion Status to software then 333 * Retry Status (CRS) Completion Status to software then
335 * enable the feature. 334 * enable the feature.
336 */ 335 */
337static void __devinit bcma_core_pci_enable_crs(struct bcma_drv_pci *pc) 336static void bcma_core_pci_enable_crs(struct bcma_drv_pci *pc)
338{ 337{
339 struct bcma_bus *bus = pc->core->bus; 338 struct bcma_bus *bus = pc->core->bus;
340 u8 cap_ptr, root_ctrl, root_cap, dev; 339 u8 cap_ptr, root_ctrl, root_cap, dev;
@@ -381,7 +380,7 @@ static void __devinit bcma_core_pci_enable_crs(struct bcma_drv_pci *pc)
381 } 380 }
382} 381}
383 382
384void __devinit bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc) 383void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc)
385{ 384{
386 struct bcma_bus *bus = pc->core->bus; 385 struct bcma_bus *bus = pc->core->bus;
387 struct bcma_drv_pci_host *pc_host; 386 struct bcma_drv_pci_host *pc_host;
diff --git a/drivers/bcma/host_pci.c b/drivers/bcma/host_pci.c
index 98fdc3e014e7..fbf2759e7e4e 100644
--- a/drivers/bcma/host_pci.c
+++ b/drivers/bcma/host_pci.c
@@ -155,8 +155,8 @@ static const struct bcma_host_ops bcma_host_pci_ops = {
155 .awrite32 = bcma_host_pci_awrite32, 155 .awrite32 = bcma_host_pci_awrite32,
156}; 156};
157 157
158static int __devinit bcma_host_pci_probe(struct pci_dev *dev, 158static int bcma_host_pci_probe(struct pci_dev *dev,
159 const struct pci_device_id *id) 159 const struct pci_device_id *id)
160{ 160{
161 struct bcma_bus *bus; 161 struct bcma_bus *bus;
162 int err = -ENOMEM; 162 int err = -ENOMEM;
@@ -226,7 +226,7 @@ err_kfree_bus:
226 return err; 226 return err;
227} 227}
228 228
229static void __devexit bcma_host_pci_remove(struct pci_dev *dev) 229static void bcma_host_pci_remove(struct pci_dev *dev)
230{ 230{
231 struct bcma_bus *bus = pci_get_drvdata(dev); 231 struct bcma_bus *bus = pci_get_drvdata(dev);
232 232
@@ -284,7 +284,7 @@ static struct pci_driver bcma_pci_bridge_driver = {
284 .name = "bcma-pci-bridge", 284 .name = "bcma-pci-bridge",
285 .id_table = bcma_pci_bridge_tbl, 285 .id_table = bcma_pci_bridge_tbl,
286 .probe = bcma_host_pci_probe, 286 .probe = bcma_host_pci_probe,
287 .remove = __devexit_p(bcma_host_pci_remove), 287 .remove = bcma_host_pci_remove,
288 .driver.pm = BCMA_PM_OPS, 288 .driver.pm = BCMA_PM_OPS,
289}; 289};
290 290
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c
index 53ba20ca17e0..4a92f647b58b 100644
--- a/drivers/bcma/main.c
+++ b/drivers/bcma/main.c
@@ -192,7 +192,7 @@ static void bcma_unregister_cores(struct bcma_bus *bus)
192 platform_device_unregister(bus->drv_cc.watchdog); 192 platform_device_unregister(bus->drv_cc.watchdog);
193} 193}
194 194
195int __devinit bcma_bus_register(struct bcma_bus *bus) 195int bcma_bus_register(struct bcma_bus *bus)
196{ 196{
197 int err; 197 int err;
198 struct bcma_device *core; 198 struct bcma_device *core;
diff --git a/include/linux/bcma/bcma_driver_gmac_cmn.h b/include/linux/bcma/bcma_driver_gmac_cmn.h
index def894b83b0d..4dd1f33e36a2 100644
--- a/include/linux/bcma/bcma_driver_gmac_cmn.h
+++ b/include/linux/bcma/bcma_driver_gmac_cmn.h
@@ -92,7 +92,7 @@ struct bcma_drv_gmac_cmn {
92#define gmac_cmn_write32(gc, offset, val) bcma_write32((gc)->core, offset, val) 92#define gmac_cmn_write32(gc, offset, val) bcma_write32((gc)->core, offset, val)
93 93
94#ifdef CONFIG_BCMA_DRIVER_GMAC_CMN 94#ifdef CONFIG_BCMA_DRIVER_GMAC_CMN
95extern void __devinit bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc); 95extern void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc);
96#else 96#else
97static inline void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc) { } 97static inline void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc) { }
98#endif 98#endif
diff --git a/include/linux/bcma/bcma_driver_pci.h b/include/linux/bcma/bcma_driver_pci.h
index 41da581e1612..c48d98d27b77 100644
--- a/include/linux/bcma/bcma_driver_pci.h
+++ b/include/linux/bcma/bcma_driver_pci.h
@@ -214,7 +214,7 @@ struct bcma_drv_pci {
214#define pcicore_write16(pc, offset, val) bcma_write16((pc)->core, offset, val) 214#define pcicore_write16(pc, offset, val) bcma_write16((pc)->core, offset, val)
215#define pcicore_write32(pc, offset, val) bcma_write32((pc)->core, offset, val) 215#define pcicore_write32(pc, offset, val) bcma_write32((pc)->core, offset, val)
216 216
217extern void __devinit bcma_core_pci_init(struct bcma_drv_pci *pc); 217extern void bcma_core_pci_init(struct bcma_drv_pci *pc);
218extern int bcma_core_pci_irq_ctl(struct bcma_drv_pci *pc, 218extern int bcma_core_pci_irq_ctl(struct bcma_drv_pci *pc,
219 struct bcma_device *core, bool enable); 219 struct bcma_device *core, bool enable);
220extern void bcma_core_pci_extend_L1timer(struct bcma_drv_pci *pc, bool extend); 220extern void bcma_core_pci_extend_L1timer(struct bcma_drv_pci *pc, bool extend);