Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+19 -20
+3 -3
drivers/bcma/bcma_private.h
··· 22 22 struct bcma_bus; 23 23 24 24 /* main.c */ 25 - int __devinit bcma_bus_register(struct bcma_bus *bus); 25 + int bcma_bus_register(struct bcma_bus *bus); 26 26 void bcma_bus_unregister(struct bcma_bus *bus); 27 27 int __init bcma_bus_early_register(struct bcma_bus *bus, 28 28 struct bcma_device *core_cc, ··· 87 87 extern int bcma_chipco_watchdog_register(struct bcma_drv_cc *cc); 88 88 89 89 #ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE 90 - bool __devinit bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc); 91 - void __devinit bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc); 90 + bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc); 91 + void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc); 92 92 #endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */ 93 93 94 94 #ifdef CONFIG_BCMA_DRIVER_GPIO
+1 -1
drivers/bcma/driver_gmac_cmn.c
··· 8 8 #include "bcma_private.h" 9 9 #include <linux/bcma/bcma.h> 10 10 11 - void __devinit bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc) 11 + void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc) 12 12 { 13 13 mutex_init(&gc->phy_mutex); 14 14 }
+2 -2
drivers/bcma/driver_pci.c
··· 207 207 * Init. 208 208 **************************************************/ 209 209 210 - static void __devinit bcma_core_pci_clientmode_init(struct bcma_drv_pci *pc) 210 + static void bcma_core_pci_clientmode_init(struct bcma_drv_pci *pc) 211 211 { 212 212 bcma_core_pci_fixcfg(pc); 213 213 bcma_pcicore_serdes_workaround(pc); 214 214 bcma_core_pci_config_fixup(pc); 215 215 } 216 216 217 - void __devinit bcma_core_pci_init(struct bcma_drv_pci *pc) 217 + void bcma_core_pci_init(struct bcma_drv_pci *pc) 218 218 { 219 219 if (pc->setup_done) 220 220 return;
+6 -7
drivers/bcma/driver_pci_host.c
··· 24 24 #define BCMA_PCI_SLOT_MAX 16 25 25 #define PCI_CONFIG_SPACE_SIZE 256 26 26 27 - bool __devinit bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc) 27 + bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc) 28 28 { 29 29 struct bcma_bus *bus = pc->core->bus; 30 30 u16 chipid_top; ··· 264 264 } 265 265 266 266 /* return cap_offset if requested capability exists in the PCI config space */ 267 - static u8 __devinit bcma_find_pci_capability(struct bcma_drv_pci *pc, 268 - unsigned int dev, 269 - unsigned int func, u8 req_cap_id, 270 - unsigned char *buf, u32 *buflen) 267 + static u8 bcma_find_pci_capability(struct bcma_drv_pci *pc, unsigned int dev, 268 + unsigned int func, u8 req_cap_id, 269 + unsigned char *buf, u32 *buflen) 271 270 { 272 271 u8 cap_id; 273 272 u8 cap_ptr = 0; ··· 333 334 * Retry Status (CRS) Completion Status to software then 334 335 * enable the feature. 335 336 */ 336 - static void __devinit bcma_core_pci_enable_crs(struct bcma_drv_pci *pc) 337 + static void bcma_core_pci_enable_crs(struct bcma_drv_pci *pc) 337 338 { 338 339 struct bcma_bus *bus = pc->core->bus; 339 340 u8 cap_ptr, root_ctrl, root_cap, dev; ··· 380 381 } 381 382 } 382 383 383 - void __devinit bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc) 384 + void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc) 384 385 { 385 386 struct bcma_bus *bus = pc->core->bus; 386 387 struct bcma_drv_pci_host *pc_host;
+4 -4
drivers/bcma/host_pci.c
··· 155 155 .awrite32 = bcma_host_pci_awrite32, 156 156 }; 157 157 158 - static int __devinit bcma_host_pci_probe(struct pci_dev *dev, 159 - const struct pci_device_id *id) 158 + static int bcma_host_pci_probe(struct pci_dev *dev, 159 + const struct pci_device_id *id) 160 160 { 161 161 struct bcma_bus *bus; 162 162 int err = -ENOMEM; ··· 226 226 return err; 227 227 } 228 228 229 - static void __devexit bcma_host_pci_remove(struct pci_dev *dev) 229 + static void bcma_host_pci_remove(struct pci_dev *dev) 230 230 { 231 231 struct bcma_bus *bus = pci_get_drvdata(dev); 232 232 ··· 284 284 .name = "bcma-pci-bridge", 285 285 .id_table = bcma_pci_bridge_tbl, 286 286 .probe = bcma_host_pci_probe, 287 - .remove = __devexit_p(bcma_host_pci_remove), 287 + .remove = bcma_host_pci_remove, 288 288 .driver.pm = BCMA_PM_OPS, 289 289 }; 290 290
+1 -1
drivers/bcma/main.c
··· 192 192 platform_device_unregister(bus->drv_cc.watchdog); 193 193 } 194 194 195 - int __devinit bcma_bus_register(struct bcma_bus *bus) 195 + int bcma_bus_register(struct bcma_bus *bus) 196 196 { 197 197 int err; 198 198 struct bcma_device *core;
+1 -1
include/linux/bcma/bcma_driver_gmac_cmn.h
··· 92 92 #define gmac_cmn_write32(gc, offset, val) bcma_write32((gc)->core, offset, val) 93 93 94 94 #ifdef CONFIG_BCMA_DRIVER_GMAC_CMN 95 - extern void __devinit bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc); 95 + extern void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc); 96 96 #else 97 97 static inline void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc) { } 98 98 #endif
+1 -1
include/linux/bcma/bcma_driver_pci.h
··· 214 214 #define pcicore_write16(pc, offset, val) bcma_write16((pc)->core, offset, val) 215 215 #define pcicore_write32(pc, offset, val) bcma_write32((pc)->core, offset, val) 216 216 217 - extern void __devinit bcma_core_pci_init(struct bcma_drv_pci *pc); 217 + extern void bcma_core_pci_init(struct bcma_drv_pci *pc); 218 218 extern int bcma_core_pci_irq_ctl(struct bcma_drv_pci *pc, 219 219 struct bcma_device *core, bool enable); 220 220 extern void bcma_core_pci_extend_L1timer(struct bcma_drv_pci *pc, bool extend);