summaryrefslogtreecommitdiffstats
path: root/drivers/bcma/sprom.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2012-07-05 16:07:32 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-07-09 16:36:36 -0400
commit3d9d8af330a891f141db420115238f01e4c6ece7 (patch)
treee184e7da8625c3de578e48a308f634eb68de0865 /drivers/bcma/sprom.c
parentcddec90254c3c3d20752bf9053c496035cdfef6a (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/sprom.c')
-rw-r--r--drivers/bcma/sprom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/bcma/sprom.c b/drivers/bcma/sprom.c
index e1eb598ec702..26823d97fd9f 100644
--- a/drivers/bcma/sprom.c
+++ b/drivers/bcma/sprom.c
@@ -60,11 +60,11 @@ static int bcma_fill_sprom_with_fallback(struct bcma_bus *bus,
60 if (err) 60 if (err)
61 goto fail; 61 goto fail;
62 62
63 pr_debug("Using SPROM revision %d provided by" 63 bcma_debug(bus, "Using SPROM revision %d provided by platform.\n",
64 " platform.\n", bus->sprom.revision); 64 bus->sprom.revision);
65 return 0; 65 return 0;
66fail: 66fail:
67 pr_warn("Using fallback SPROM failed (err %d)\n", err); 67 bcma_warn(bus, "Using fallback SPROM failed (err %d)\n", err);
68 return err; 68 return err;
69} 69}
70 70
@@ -583,7 +583,7 @@ int bcma_sprom_get(struct bcma_bus *bus)
583 bus->chipinfo.id == BCMA_CHIP_ID_BCM43431) 583 bus->chipinfo.id == BCMA_CHIP_ID_BCM43431)
584 bcma_chipco_bcm4331_ext_pa_lines_ctl(&bus->drv_cc, false); 584 bcma_chipco_bcm4331_ext_pa_lines_ctl(&bus->drv_cc, false);
585 585
586 pr_debug("SPROM offset 0x%x\n", offset); 586 bcma_debug(bus, "SPROM offset 0x%x\n", offset);
587 bcma_sprom_read(bus, offset, sprom); 587 bcma_sprom_read(bus, offset, sprom);
588 588
589 if (bus->chipinfo.id == BCMA_CHIP_ID_BCM4331 || 589 if (bus->chipinfo.id == BCMA_CHIP_ID_BCM4331 ||