diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2012-07-05 16:07:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-09 16:36:36 -0400 |
commit | 3d9d8af330a891f141db420115238f01e4c6ece7 (patch) | |
tree | e184e7da8625c3de578e48a308f634eb68de0865 /drivers/bcma/driver_mips.c | |
parent | cddec90254c3c3d20752bf9053c496035cdfef6a (diff) |
bcma: use custom printing functions
Having bus number printed makes it much easier to anaylze logs on
systems with more buses. For example Netgear WNDR4500 has 3 AMBA buses
in total, which makes standard log really messy.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma/driver_mips.c')
-rw-r--r-- | drivers/bcma/driver_mips.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/bcma/driver_mips.c b/drivers/bcma/driver_mips.c index 73ed3017077f..ef34ed25bf00 100644 --- a/drivers/bcma/driver_mips.c +++ b/drivers/bcma/driver_mips.c | |||
@@ -143,8 +143,8 @@ static void bcma_core_mips_set_irq(struct bcma_device *dev, unsigned int irq) | |||
143 | 1 << irqflag); | 143 | 1 << irqflag); |
144 | } | 144 | } |
145 | 145 | ||
146 | pr_info("set_irq: core 0x%04x, irq %d => %d\n", | 146 | bcma_info(bus, "set_irq: core 0x%04x, irq %d => %d\n", |
147 | dev->id.id, oldirq + 2, irq + 2); | 147 | dev->id.id, oldirq + 2, irq + 2); |
148 | } | 148 | } |
149 | 149 | ||
150 | static void bcma_core_mips_print_irq(struct bcma_device *dev, unsigned int irq) | 150 | static void bcma_core_mips_print_irq(struct bcma_device *dev, unsigned int irq) |
@@ -173,7 +173,7 @@ u32 bcma_cpu_clock(struct bcma_drv_mips *mcore) | |||
173 | if (bus->drv_cc.capabilities & BCMA_CC_CAP_PMU) | 173 | if (bus->drv_cc.capabilities & BCMA_CC_CAP_PMU) |
174 | return bcma_pmu_get_clockcpu(&bus->drv_cc); | 174 | return bcma_pmu_get_clockcpu(&bus->drv_cc); |
175 | 175 | ||
176 | pr_err("No PMU available, need this to get the cpu clock\n"); | 176 | bcma_err(bus, "No PMU available, need this to get the cpu clock\n"); |
177 | return 0; | 177 | return 0; |
178 | } | 178 | } |
179 | EXPORT_SYMBOL(bcma_cpu_clock); | 179 | EXPORT_SYMBOL(bcma_cpu_clock); |
@@ -185,10 +185,10 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore) | |||
185 | switch (bus->drv_cc.capabilities & BCMA_CC_CAP_FLASHT) { | 185 | switch (bus->drv_cc.capabilities & BCMA_CC_CAP_FLASHT) { |
186 | case BCMA_CC_FLASHT_STSER: | 186 | case BCMA_CC_FLASHT_STSER: |
187 | case BCMA_CC_FLASHT_ATSER: | 187 | case BCMA_CC_FLASHT_ATSER: |
188 | pr_err("Serial flash not supported.\n"); | 188 | bcma_err(bus, "Serial flash not supported.\n"); |
189 | break; | 189 | break; |
190 | case BCMA_CC_FLASHT_PARA: | 190 | case BCMA_CC_FLASHT_PARA: |
191 | pr_info("found parallel flash.\n"); | 191 | bcma_info(bus, "found parallel flash.\n"); |
192 | bus->drv_cc.pflash.window = 0x1c000000; | 192 | bus->drv_cc.pflash.window = 0x1c000000; |
193 | bus->drv_cc.pflash.window_size = 0x02000000; | 193 | bus->drv_cc.pflash.window_size = 0x02000000; |
194 | 194 | ||
@@ -199,7 +199,7 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore) | |||
199 | bus->drv_cc.pflash.buswidth = 2; | 199 | bus->drv_cc.pflash.buswidth = 2; |
200 | break; | 200 | break; |
201 | default: | 201 | default: |
202 | pr_err("flash not supported.\n"); | 202 | bcma_err(bus, "flash not supported.\n"); |
203 | } | 203 | } |
204 | } | 204 | } |
205 | 205 | ||
@@ -209,7 +209,7 @@ void bcma_core_mips_init(struct bcma_drv_mips *mcore) | |||
209 | struct bcma_device *core; | 209 | struct bcma_device *core; |
210 | bus = mcore->core->bus; | 210 | bus = mcore->core->bus; |
211 | 211 | ||
212 | pr_info("Initializing MIPS core...\n"); | 212 | bcma_info(bus, "Initializing MIPS core...\n"); |
213 | 213 | ||
214 | if (!mcore->setup_done) | 214 | if (!mcore->setup_done) |
215 | mcore->assigned_irqs = 1; | 215 | mcore->assigned_irqs = 1; |
@@ -244,7 +244,7 @@ void bcma_core_mips_init(struct bcma_drv_mips *mcore) | |||
244 | break; | 244 | break; |
245 | } | 245 | } |
246 | } | 246 | } |
247 | pr_info("IRQ reconfiguration done\n"); | 247 | bcma_info(bus, "IRQ reconfiguration done\n"); |
248 | bcma_core_mips_dump_irq(bus); | 248 | bcma_core_mips_dump_irq(bus); |
249 | 249 | ||
250 | if (mcore->setup_done) | 250 | if (mcore->setup_done) |