aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ssb
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 18:10:52 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:15 -0500
commit163247c1d274279aa4ac1aa0891858c7a50195c0 (patch)
treeaf6ea45d96e90fec3d4e8588deec79afaa071b78 /drivers/ssb
parent4bf27b8b333bcd291664fd0f7d129099d474a23b (diff)
Drivers: ssb: 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, 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: Michael Buesch <m@bues.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ssb')
-rw-r--r--drivers/ssb/driver_gige.c14
-rw-r--r--drivers/ssb/driver_pcicore.c10
-rw-r--r--drivers/ssb/main.c27
-rw-r--r--drivers/ssb/pcihost_wrapper.c6
4 files changed, 26 insertions, 31 deletions
diff --git a/drivers/ssb/driver_gige.c b/drivers/ssb/driver_gige.c
index f30ea689933a..21f71a1581fa 100644
--- a/drivers/ssb/driver_gige.c
+++ b/drivers/ssb/driver_gige.c
@@ -107,9 +107,8 @@ void gige_pcicfg_write32(struct ssb_gige *dev,
107 gige_write32(dev, SSB_GIGE_PCICFG + offset, value); 107 gige_write32(dev, SSB_GIGE_PCICFG + offset, value);
108} 108}
109 109
110static int __devinit ssb_gige_pci_read_config(struct pci_bus *bus, 110static int ssb_gige_pci_read_config(struct pci_bus *bus, unsigned int devfn,
111 unsigned int devfn, int reg, 111 int reg, int size, u32 *val)
112 int size, u32 *val)
113{ 112{
114 struct ssb_gige *dev = container_of(bus->ops, struct ssb_gige, pci_ops); 113 struct ssb_gige *dev = container_of(bus->ops, struct ssb_gige, pci_ops);
115 unsigned long flags; 114 unsigned long flags;
@@ -138,9 +137,8 @@ static int __devinit ssb_gige_pci_read_config(struct pci_bus *bus,
138 return PCIBIOS_SUCCESSFUL; 137 return PCIBIOS_SUCCESSFUL;
139} 138}
140 139
141static int __devinit ssb_gige_pci_write_config(struct pci_bus *bus, 140static int ssb_gige_pci_write_config(struct pci_bus *bus, unsigned int devfn,
142 unsigned int devfn, int reg, 141 int reg, int size, u32 val)
143 int size, u32 val)
144{ 142{
145 struct ssb_gige *dev = container_of(bus->ops, struct ssb_gige, pci_ops); 143 struct ssb_gige *dev = container_of(bus->ops, struct ssb_gige, pci_ops);
146 unsigned long flags; 144 unsigned long flags;
@@ -169,8 +167,8 @@ static int __devinit ssb_gige_pci_write_config(struct pci_bus *bus,
169 return PCIBIOS_SUCCESSFUL; 167 return PCIBIOS_SUCCESSFUL;
170} 168}
171 169
172static int __devinit ssb_gige_probe(struct ssb_device *sdev, 170static int ssb_gige_probe(struct ssb_device *sdev,
173 const struct ssb_device_id *id) 171 const struct ssb_device_id *id)
174{ 172{
175 struct ssb_gige *dev; 173 struct ssb_gige *dev;
176 u32 base, tmslow, tmshigh; 174 u32 base, tmslow, tmshigh;
diff --git a/drivers/ssb/driver_pcicore.c b/drivers/ssb/driver_pcicore.c
index 49d209173f55..59801d23d7ec 100644
--- a/drivers/ssb/driver_pcicore.c
+++ b/drivers/ssb/driver_pcicore.c
@@ -315,7 +315,7 @@ int ssb_pcicore_pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
315 return ssb_mips_irq(extpci_core->dev) + 2; 315 return ssb_mips_irq(extpci_core->dev) + 2;
316} 316}
317 317
318static void __devinit ssb_pcicore_init_hostmode(struct ssb_pcicore *pc) 318static void ssb_pcicore_init_hostmode(struct ssb_pcicore *pc)
319{ 319{
320 u32 val; 320 u32 val;
321 321
@@ -380,7 +380,7 @@ static void __devinit ssb_pcicore_init_hostmode(struct ssb_pcicore *pc)
380 register_pci_controller(&ssb_pcicore_controller); 380 register_pci_controller(&ssb_pcicore_controller);
381} 381}
382 382
383static int __devinit pcicore_is_in_hostmode(struct ssb_pcicore *pc) 383static int pcicore_is_in_hostmode(struct ssb_pcicore *pc)
384{ 384{
385 struct ssb_bus *bus = pc->dev->bus; 385 struct ssb_bus *bus = pc->dev->bus;
386 u16 chipid_top; 386 u16 chipid_top;
@@ -413,7 +413,7 @@ static int __devinit pcicore_is_in_hostmode(struct ssb_pcicore *pc)
413 * Workarounds. 413 * Workarounds.
414 **************************************************/ 414 **************************************************/
415 415
416static void __devinit ssb_pcicore_fix_sprom_core_index(struct ssb_pcicore *pc) 416static void ssb_pcicore_fix_sprom_core_index(struct ssb_pcicore *pc)
417{ 417{
418 u16 tmp = pcicore_read16(pc, SSB_PCICORE_SPROM(0)); 418 u16 tmp = pcicore_read16(pc, SSB_PCICORE_SPROM(0));
419 if (((tmp & 0xF000) >> 12) != pc->dev->core_index) { 419 if (((tmp & 0xF000) >> 12) != pc->dev->core_index) {
@@ -515,7 +515,7 @@ static void ssb_pcicore_pcie_setup_workarounds(struct ssb_pcicore *pc)
515 * Generic and Clientmode operation code. 515 * Generic and Clientmode operation code.
516 **************************************************/ 516 **************************************************/
517 517
518static void __devinit ssb_pcicore_init_clientmode(struct ssb_pcicore *pc) 518static void ssb_pcicore_init_clientmode(struct ssb_pcicore *pc)
519{ 519{
520 struct ssb_device *pdev = pc->dev; 520 struct ssb_device *pdev = pc->dev;
521 struct ssb_bus *bus = pdev->bus; 521 struct ssb_bus *bus = pdev->bus;
@@ -534,7 +534,7 @@ static void __devinit ssb_pcicore_init_clientmode(struct ssb_pcicore *pc)
534 } 534 }
535} 535}
536 536
537void __devinit ssb_pcicore_init(struct ssb_pcicore *pc) 537void ssb_pcicore_init(struct ssb_pcicore *pc)
538{ 538{
539 struct ssb_device *dev = pc->dev; 539 struct ssb_device *dev = pc->dev;
540 540
diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c
index c82c5c95fe85..772ad9b5c304 100644
--- a/drivers/ssb/main.c
+++ b/drivers/ssb/main.c
@@ -548,7 +548,7 @@ error:
548} 548}
549 549
550/* Needs ssb_buses_lock() */ 550/* Needs ssb_buses_lock() */
551static int __devinit ssb_attach_queued_buses(void) 551static int ssb_attach_queued_buses(void)
552{ 552{
553 struct ssb_bus *bus, *n; 553 struct ssb_bus *bus, *n;
554 int err = 0; 554 int err = 0;
@@ -761,9 +761,9 @@ out:
761 return err; 761 return err;
762} 762}
763 763
764static int __devinit ssb_bus_register(struct ssb_bus *bus, 764static int ssb_bus_register(struct ssb_bus *bus,
765 ssb_invariants_func_t get_invariants, 765 ssb_invariants_func_t get_invariants,
766 unsigned long baseaddr) 766 unsigned long baseaddr)
767{ 767{
768 int err; 768 int err;
769 769
@@ -851,8 +851,7 @@ err_disable_xtal:
851} 851}
852 852
853#ifdef CONFIG_SSB_PCIHOST 853#ifdef CONFIG_SSB_PCIHOST
854int __devinit ssb_bus_pcibus_register(struct ssb_bus *bus, 854int ssb_bus_pcibus_register(struct ssb_bus *bus, struct pci_dev *host_pci)
855 struct pci_dev *host_pci)
856{ 855{
857 int err; 856 int err;
858 857
@@ -875,9 +874,9 @@ EXPORT_SYMBOL(ssb_bus_pcibus_register);
875#endif /* CONFIG_SSB_PCIHOST */ 874#endif /* CONFIG_SSB_PCIHOST */
876 875
877#ifdef CONFIG_SSB_PCMCIAHOST 876#ifdef CONFIG_SSB_PCMCIAHOST
878int __devinit ssb_bus_pcmciabus_register(struct ssb_bus *bus, 877int ssb_bus_pcmciabus_register(struct ssb_bus *bus,
879 struct pcmcia_device *pcmcia_dev, 878 struct pcmcia_device *pcmcia_dev,
880 unsigned long baseaddr) 879 unsigned long baseaddr)
881{ 880{
882 int err; 881 int err;
883 882
@@ -897,9 +896,8 @@ EXPORT_SYMBOL(ssb_bus_pcmciabus_register);
897#endif /* CONFIG_SSB_PCMCIAHOST */ 896#endif /* CONFIG_SSB_PCMCIAHOST */
898 897
899#ifdef CONFIG_SSB_SDIOHOST 898#ifdef CONFIG_SSB_SDIOHOST
900int __devinit ssb_bus_sdiobus_register(struct ssb_bus *bus, 899int ssb_bus_sdiobus_register(struct ssb_bus *bus, struct sdio_func *func,
901 struct sdio_func *func, 900 unsigned int quirks)
902 unsigned int quirks)
903{ 901{
904 int err; 902 int err;
905 903
@@ -919,9 +917,8 @@ int __devinit ssb_bus_sdiobus_register(struct ssb_bus *bus,
919EXPORT_SYMBOL(ssb_bus_sdiobus_register); 917EXPORT_SYMBOL(ssb_bus_sdiobus_register);
920#endif /* CONFIG_SSB_PCMCIAHOST */ 918#endif /* CONFIG_SSB_PCMCIAHOST */
921 919
922int __devinit ssb_bus_ssbbus_register(struct ssb_bus *bus, 920int ssb_bus_ssbbus_register(struct ssb_bus *bus, unsigned long baseaddr,
923 unsigned long baseaddr, 921 ssb_invariants_func_t get_invariants)
924 ssb_invariants_func_t get_invariants)
925{ 922{
926 int err; 923 int err;
927 924
diff --git a/drivers/ssb/pcihost_wrapper.c b/drivers/ssb/pcihost_wrapper.c
index af5448f5e2d2..32ed1fa4a82e 100644
--- a/drivers/ssb/pcihost_wrapper.c
+++ b/drivers/ssb/pcihost_wrapper.c
@@ -54,8 +54,8 @@ static int ssb_pcihost_resume(struct pci_dev *dev)
54# define ssb_pcihost_resume NULL 54# define ssb_pcihost_resume NULL
55#endif /* CONFIG_PM */ 55#endif /* CONFIG_PM */
56 56
57static int __devinit ssb_pcihost_probe(struct pci_dev *dev, 57static int ssb_pcihost_probe(struct pci_dev *dev,
58 const struct pci_device_id *id) 58 const struct pci_device_id *id)
59{ 59{
60 struct ssb_bus *ssb; 60 struct ssb_bus *ssb;
61 int err = -ENOMEM; 61 int err = -ENOMEM;
@@ -111,7 +111,7 @@ static void ssb_pcihost_remove(struct pci_dev *dev)
111 pci_set_drvdata(dev, NULL); 111 pci_set_drvdata(dev, NULL);
112} 112}
113 113
114int __devinit ssb_pcihost_register(struct pci_driver *driver) 114int ssb_pcihost_register(struct pci_driver *driver)
115{ 115{
116 driver->probe = ssb_pcihost_probe; 116 driver->probe = ssb_pcihost_probe;
117 driver->remove = ssb_pcihost_remove; 117 driver->remove = ssb_pcihost_remove;