aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bcma
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2013-01-15 15:05:59 -0500
committerDavid S. Miller <davem@davemloft.net>2013-01-15 15:05:59 -0500
commit4b87f922598acf91eee18f71688a33f54f57bcde (patch)
tree9cdfe30c6b96c47093da5392ed82d147290cd64c /drivers/bcma
parent55eb555d9674e2ebe9d4de0146602f96ff18e7d6 (diff)
parentdaf3ec688e057f6060fb9bb0819feac7a8bbf45c (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: Documentation/networking/ip-sysctl.txt drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c Both conflicts were simply overlapping context. A build fix for qlcnic is in here too, simply removing the added devinit annotations which no longer exist. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/bcma')
-rw-r--r--drivers/bcma/Kconfig3
-rw-r--r--drivers/bcma/bcma_private.h6
-rw-r--r--drivers/bcma/driver_chipcommon_sflash.c2
-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
8 files changed, 19 insertions, 21 deletions
diff --git a/drivers/bcma/Kconfig b/drivers/bcma/Kconfig
index d7b56a88c9f4..8b4221cfd118 100644
--- a/drivers/bcma/Kconfig
+++ b/drivers/bcma/Kconfig
@@ -67,8 +67,7 @@ config BCMA_DRIVER_GMAC_CMN
67 67
68config BCMA_DRIVER_GPIO 68config BCMA_DRIVER_GPIO
69 bool "BCMA GPIO driver" 69 bool "BCMA GPIO driver"
70 depends on BCMA 70 depends on BCMA && GPIOLIB
71 select GPIOLIB
72 help 71 help
73 Driver to provide access to the GPIO pins of the bcma bus. 72 Driver to provide access to the GPIO pins of the bcma bus.
74 73
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_chipcommon_sflash.c b/drivers/bcma/driver_chipcommon_sflash.c
index 63e688393825..1e694db4532d 100644
--- a/drivers/bcma/driver_chipcommon_sflash.c
+++ b/drivers/bcma/driver_chipcommon_sflash.c
@@ -35,7 +35,7 @@ static struct bcma_sflash_tbl_e bcma_sflash_st_tbl[] = {
35 { "M25P40", 0x12, 0x10000, 8, }, 35 { "M25P40", 0x12, 0x10000, 8, },
36 36
37 { "M25P16", 0x14, 0x10000, 32, }, 37 { "M25P16", 0x14, 0x10000, 32, },
38 { "M25P32", 0x14, 0x10000, 64, }, 38 { "M25P32", 0x15, 0x10000, 64, },
39 { "M25P64", 0x16, 0x10000, 128, }, 39 { "M25P64", 0x16, 0x10000, 128, },
40 { "M25FL128", 0x17, 0x10000, 256, }, 40 { "M25FL128", 0x17, 0x10000, 256, },
41 { 0 }, 41 { 0 },
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;