aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bcma
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2011-06-24 15:25:51 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-06-24 15:25:51 -0400
commit36099365c7cc64e5184b66b6eb094950a13f540c (patch)
treec91b9f3719f94864a62f2d15a71aaecd54c56711 /drivers/bcma
parent22c8c9343258feda9ea9ebb9e5f8cbb727b69454 (diff)
parentf70490e6078abe1182437e629f67a7f0b6f08cd4 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts: drivers/net/wireless/rtlwifi/pci.c include/linux/netlink.h
Diffstat (limited to 'drivers/bcma')
-rw-r--r--drivers/bcma/bcma_private.h4
-rw-r--r--drivers/bcma/core.c3
-rw-r--r--drivers/bcma/driver_chipcommon_pmu.c6
-rw-r--r--drivers/bcma/driver_pci.c1
-rw-r--r--drivers/bcma/host_pci.c1
-rw-r--r--drivers/bcma/main.c2
6 files changed, 11 insertions, 6 deletions
diff --git a/drivers/bcma/bcma_private.h b/drivers/bcma/bcma_private.h
index 12a75ab3dd23..4228736de0e8 100644
--- a/drivers/bcma/bcma_private.h
+++ b/drivers/bcma/bcma_private.h
@@ -13,8 +13,8 @@
13struct bcma_bus; 13struct bcma_bus;
14 14
15/* main.c */ 15/* main.c */
16extern int bcma_bus_register(struct bcma_bus *bus); 16int bcma_bus_register(struct bcma_bus *bus);
17extern void bcma_bus_unregister(struct bcma_bus *bus); 17void bcma_bus_unregister(struct bcma_bus *bus);
18 18
19/* scan.c */ 19/* scan.c */
20int bcma_bus_scan(struct bcma_bus *bus); 20int bcma_bus_scan(struct bcma_bus *bus);
diff --git a/drivers/bcma/core.c b/drivers/bcma/core.c
index ced379f7b371..1ec7d4528dd0 100644
--- a/drivers/bcma/core.c
+++ b/drivers/bcma/core.c
@@ -19,7 +19,7 @@ bool bcma_core_is_enabled(struct bcma_device *core)
19} 19}
20EXPORT_SYMBOL_GPL(bcma_core_is_enabled); 20EXPORT_SYMBOL_GPL(bcma_core_is_enabled);
21 21
22static void bcma_core_disable(struct bcma_device *core, u32 flags) 22void bcma_core_disable(struct bcma_device *core, u32 flags)
23{ 23{
24 if (bcma_aread32(core, BCMA_RESET_CTL) & BCMA_RESET_CTL_RESET) 24 if (bcma_aread32(core, BCMA_RESET_CTL) & BCMA_RESET_CTL_RESET)
25 return; 25 return;
@@ -31,6 +31,7 @@ static void bcma_core_disable(struct bcma_device *core, u32 flags)
31 bcma_awrite32(core, BCMA_RESET_CTL, BCMA_RESET_CTL_RESET); 31 bcma_awrite32(core, BCMA_RESET_CTL, BCMA_RESET_CTL_RESET);
32 udelay(1); 32 udelay(1);
33} 33}
34EXPORT_SYMBOL_GPL(bcma_core_disable);
34 35
35int bcma_core_enable(struct bcma_device *core, u32 flags) 36int bcma_core_enable(struct bcma_device *core, u32 flags)
36{ 37{
diff --git a/drivers/bcma/driver_chipcommon_pmu.c b/drivers/bcma/driver_chipcommon_pmu.c
index f44177a644c7..dd5846bef029 100644
--- a/drivers/bcma/driver_chipcommon_pmu.c
+++ b/drivers/bcma/driver_chipcommon_pmu.c
@@ -53,6 +53,7 @@ static void bcma_pmu_resources_init(struct bcma_drv_cc *cc)
53 max_msk = 0xFFFF; 53 max_msk = 0xFFFF;
54 break; 54 break;
55 case 43224: 55 case 43224:
56 case 43225:
56 break; 57 break;
57 default: 58 default:
58 pr_err("PMU resource config unknown for device 0x%04X\n", 59 pr_err("PMU resource config unknown for device 0x%04X\n",
@@ -74,6 +75,7 @@ void bcma_pmu_swreg_init(struct bcma_drv_cc *cc)
74 case 0x4313: 75 case 0x4313:
75 case 0x4331: 76 case 0x4331:
76 case 43224: 77 case 43224:
78 case 43225:
77 break; 79 break;
78 default: 80 default:
79 pr_err("PMU switch/regulators init unknown for device " 81 pr_err("PMU switch/regulators init unknown for device "
@@ -96,11 +98,13 @@ void bcma_pmu_workarounds(struct bcma_drv_cc *cc)
96 if (bus->chipinfo.rev == 0) { 98 if (bus->chipinfo.rev == 0) {
97 pr_err("Workarounds for 43224 rev 0 not fully " 99 pr_err("Workarounds for 43224 rev 0 not fully "
98 "implemented\n"); 100 "implemented\n");
99 bcma_chipco_chipctl_maskset(cc, 0, ~0, 0xF0); 101 bcma_chipco_chipctl_maskset(cc, 0, ~0, 0x00F000F0);
100 } else { 102 } else {
101 bcma_chipco_chipctl_maskset(cc, 0, ~0, 0xF0); 103 bcma_chipco_chipctl_maskset(cc, 0, ~0, 0xF0);
102 } 104 }
103 break; 105 break;
106 case 43225:
107 break;
104 default: 108 default:
105 pr_err("Workarounds unknown for device 0x%04X\n", 109 pr_err("Workarounds unknown for device 0x%04X\n",
106 bus->chipinfo.id); 110 bus->chipinfo.id);
diff --git a/drivers/bcma/driver_pci.c b/drivers/bcma/driver_pci.c
index 789d68b4858b..b0c19ede0d2e 100644
--- a/drivers/bcma/driver_pci.c
+++ b/drivers/bcma/driver_pci.c
@@ -184,3 +184,4 @@ int bcma_core_pci_irq_ctl(struct bcma_drv_pci *pc, struct bcma_device *core,
184out: 184out:
185 return err; 185 return err;
186} 186}
187EXPORT_SYMBOL_GPL(bcma_core_pci_irq_ctl);
diff --git a/drivers/bcma/host_pci.c b/drivers/bcma/host_pci.c
index 2a526bc3342f..ac4bc626c149 100644
--- a/drivers/bcma/host_pci.c
+++ b/drivers/bcma/host_pci.c
@@ -227,6 +227,7 @@ static DEFINE_PCI_DEVICE_TABLE(bcma_pci_bridge_tbl) = {
227 { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x0576) }, 227 { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x0576) },
228 { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4331) }, 228 { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4331) },
229 { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4353) }, 229 { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4353) },
230 { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4357) },
230 { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4727) }, 231 { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4727) },
231 { 0, }, 232 { 0, },
232}; 233};
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c
index 11e96dc6011a..ba15105cc23a 100644
--- a/drivers/bcma/main.c
+++ b/drivers/bcma/main.c
@@ -160,13 +160,11 @@ int bcma_bus_register(struct bcma_bus *bus)
160 160
161 return 0; 161 return 0;
162} 162}
163EXPORT_SYMBOL_GPL(bcma_bus_register);
164 163
165void bcma_bus_unregister(struct bcma_bus *bus) 164void bcma_bus_unregister(struct bcma_bus *bus)
166{ 165{
167 bcma_unregister_cores(bus); 166 bcma_unregister_cores(bus);
168} 167}
169EXPORT_SYMBOL_GPL(bcma_bus_unregister);
170 168
171int __bcma_driver_register(struct bcma_driver *drv, struct module *owner) 169int __bcma_driver_register(struct bcma_driver *drv, struct module *owner)
172{ 170{