diff options
-rw-r--r-- | drivers/bcma/driver_chipcommon_pmu.c | 4 | ||||
-rw-r--r-- | drivers/bcma/host_pci.c | 11 | ||||
-rw-r--r-- | drivers/bcma/host_soc.c | 2 |
3 files changed, 9 insertions, 8 deletions
diff --git a/drivers/bcma/driver_chipcommon_pmu.c b/drivers/bcma/driver_chipcommon_pmu.c index c9a4f46c5143..8b8f2f3862a2 100644 --- a/drivers/bcma/driver_chipcommon_pmu.c +++ b/drivers/bcma/driver_chipcommon_pmu.c | |||
@@ -101,7 +101,7 @@ void bcma_chipco_bcm4331_ext_pa_lines_ctl(struct bcma_drv_cc *cc, bool enable) | |||
101 | bcma_cc_write32(cc, BCMA_CC_CHIPCTL, val); | 101 | bcma_cc_write32(cc, BCMA_CC_CHIPCTL, val); |
102 | } | 102 | } |
103 | 103 | ||
104 | void bcma_pmu_workarounds(struct bcma_drv_cc *cc) | 104 | static void bcma_pmu_workarounds(struct bcma_drv_cc *cc) |
105 | { | 105 | { |
106 | struct bcma_bus *bus = cc->core->bus; | 106 | struct bcma_bus *bus = cc->core->bus; |
107 | 107 | ||
@@ -257,7 +257,7 @@ static u32 bcma_pmu_clock_bcm4706(struct bcma_drv_cc *cc, u32 pll0, u32 m) | |||
257 | } | 257 | } |
258 | 258 | ||
259 | /* query bus clock frequency for PMU-enabled chipcommon */ | 259 | /* query bus clock frequency for PMU-enabled chipcommon */ |
260 | u32 bcma_pmu_get_clockcontrol(struct bcma_drv_cc *cc) | 260 | static u32 bcma_pmu_get_clockcontrol(struct bcma_drv_cc *cc) |
261 | { | 261 | { |
262 | struct bcma_bus *bus = cc->core->bus; | 262 | struct bcma_bus *bus = cc->core->bus; |
263 | 263 | ||
diff --git a/drivers/bcma/host_pci.c b/drivers/bcma/host_pci.c index 11b32d2642df..fc996288090b 100644 --- a/drivers/bcma/host_pci.c +++ b/drivers/bcma/host_pci.c | |||
@@ -77,8 +77,8 @@ static void bcma_host_pci_write32(struct bcma_device *core, u16 offset, | |||
77 | } | 77 | } |
78 | 78 | ||
79 | #ifdef CONFIG_BCMA_BLOCKIO | 79 | #ifdef CONFIG_BCMA_BLOCKIO |
80 | void bcma_host_pci_block_read(struct bcma_device *core, void *buffer, | 80 | static void bcma_host_pci_block_read(struct bcma_device *core, void *buffer, |
81 | size_t count, u16 offset, u8 reg_width) | 81 | size_t count, u16 offset, u8 reg_width) |
82 | { | 82 | { |
83 | void __iomem *addr = core->bus->mmio + offset; | 83 | void __iomem *addr = core->bus->mmio + offset; |
84 | if (core->bus->mapped_core != core) | 84 | if (core->bus->mapped_core != core) |
@@ -100,8 +100,9 @@ void bcma_host_pci_block_read(struct bcma_device *core, void *buffer, | |||
100 | } | 100 | } |
101 | } | 101 | } |
102 | 102 | ||
103 | void bcma_host_pci_block_write(struct bcma_device *core, const void *buffer, | 103 | static void bcma_host_pci_block_write(struct bcma_device *core, |
104 | size_t count, u16 offset, u8 reg_width) | 104 | const void *buffer, size_t count, |
105 | u16 offset, u8 reg_width) | ||
105 | { | 106 | { |
106 | void __iomem *addr = core->bus->mmio + offset; | 107 | void __iomem *addr = core->bus->mmio + offset; |
107 | if (core->bus->mapped_core != core) | 108 | if (core->bus->mapped_core != core) |
@@ -139,7 +140,7 @@ static void bcma_host_pci_awrite32(struct bcma_device *core, u16 offset, | |||
139 | iowrite32(value, core->bus->mmio + (1 * BCMA_CORE_SIZE) + offset); | 140 | iowrite32(value, core->bus->mmio + (1 * BCMA_CORE_SIZE) + offset); |
140 | } | 141 | } |
141 | 142 | ||
142 | const struct bcma_host_ops bcma_host_pci_ops = { | 143 | static const struct bcma_host_ops bcma_host_pci_ops = { |
143 | .read8 = bcma_host_pci_read8, | 144 | .read8 = bcma_host_pci_read8, |
144 | .read16 = bcma_host_pci_read16, | 145 | .read16 = bcma_host_pci_read16, |
145 | .read32 = bcma_host_pci_read32, | 146 | .read32 = bcma_host_pci_read32, |
diff --git a/drivers/bcma/host_soc.c b/drivers/bcma/host_soc.c index 3c381fb8f9c4..3475e600011a 100644 --- a/drivers/bcma/host_soc.c +++ b/drivers/bcma/host_soc.c | |||
@@ -143,7 +143,7 @@ static void bcma_host_soc_awrite32(struct bcma_device *core, u16 offset, | |||
143 | writel(value, core->io_wrap + offset); | 143 | writel(value, core->io_wrap + offset); |
144 | } | 144 | } |
145 | 145 | ||
146 | const struct bcma_host_ops bcma_host_soc_ops = { | 146 | static const struct bcma_host_ops bcma_host_soc_ops = { |
147 | .read8 = bcma_host_soc_read8, | 147 | .read8 = bcma_host_soc_read8, |
148 | .read16 = bcma_host_soc_read16, | 148 | .read16 = bcma_host_soc_read16, |
149 | .read32 = bcma_host_soc_read32, | 149 | .read32 = bcma_host_soc_read32, |