aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bcma/sprom.c
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2012-01-11 15:39:32 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-01-24 14:21:12 -0500
commitcebcab9e18725d8249f607af787ee92107a665b7 (patch)
treec2191316523f4246f6b8afd37984db0b1949bd3b /drivers/bcma/sprom.c
parenta48b13ac811ee236151d9e0e0dcb5639b2ab4591 (diff)
bcma: Enable logging of SPROM offset
The SPROM location has been relocated again for some devices. This patch will log the offset when CONFIG_BCMA_DEBUG has been selected. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma/sprom.c')
-rw-r--r--drivers/bcma/sprom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bcma/sprom.c b/drivers/bcma/sprom.c
index cb835f026d94..e35134f724f6 100644
--- a/drivers/bcma/sprom.c
+++ b/drivers/bcma/sprom.c
@@ -271,6 +271,7 @@ int bcma_sprom_get(struct bcma_bus *bus)
271 * TODO: understand this condition and use it */ 271 * TODO: understand this condition and use it */
272 offset = (bus->chipinfo.id == 0x4331) ? BCMA_CC_SPROM : 272 offset = (bus->chipinfo.id == 0x4331) ? BCMA_CC_SPROM :
273 BCMA_CC_SPROM_PCIE6; 273 BCMA_CC_SPROM_PCIE6;
274 pr_debug("SPROM offset 0x%x\n", offset);
274 bcma_sprom_read(bus, offset, sprom); 275 bcma_sprom_read(bus, offset, sprom);
275 276
276 if (bus->chipinfo.id == 0x4331) 277 if (bus->chipinfo.id == 0x4331)