diff options
author | Joe Perches <joe@perches.com> | 2013-02-20 15:16:13 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-06 16:24:23 -0500 |
commit | 33a606ac8020b47292bcfda30c7888c1ab5233e2 (patch) | |
tree | 90854660647b5eced80c6a9cfe2930a7425a50e7 /drivers/ssb/scan.c | |
parent | e5652756ff36ed9e1283121f788e6a17117efcab (diff) |
ssb: Convert ssb_printk to ssb_<level>
Use a more current logging style.
Convert ssb_dbprint to ssb_dbg too.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/ssb/scan.c')
-rw-r--r-- | drivers/ssb/scan.c | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/drivers/ssb/scan.c b/drivers/ssb/scan.c index ab4627cf1114..b9429df583eb 100644 --- a/drivers/ssb/scan.c +++ b/drivers/ssb/scan.c | |||
@@ -125,8 +125,7 @@ static u16 pcidev_to_chipid(struct pci_dev *pci_dev) | |||
125 | chipid_fallback = 0x4401; | 125 | chipid_fallback = 0x4401; |
126 | break; | 126 | break; |
127 | default: | 127 | default: |
128 | ssb_printk(KERN_ERR PFX | 128 | ssb_err("PCI-ID not in fallback list\n"); |
129 | "PCI-ID not in fallback list\n"); | ||
130 | } | 129 | } |
131 | 130 | ||
132 | return chipid_fallback; | 131 | return chipid_fallback; |
@@ -152,8 +151,7 @@ static u8 chipid_to_nrcores(u16 chipid) | |||
152 | case 0x4704: | 151 | case 0x4704: |
153 | return 9; | 152 | return 9; |
154 | default: | 153 | default: |
155 | ssb_printk(KERN_ERR PFX | 154 | ssb_err("CHIPID not in nrcores fallback list\n"); |
156 | "CHIPID not in nrcores fallback list\n"); | ||
157 | } | 155 | } |
158 | 156 | ||
159 | return 1; | 157 | return 1; |
@@ -320,15 +318,13 @@ int ssb_bus_scan(struct ssb_bus *bus, | |||
320 | bus->chip_package = 0; | 318 | bus->chip_package = 0; |
321 | } | 319 | } |
322 | } | 320 | } |
323 | ssb_printk(KERN_INFO PFX "Found chip with id 0x%04X, rev 0x%02X and " | 321 | ssb_info("Found chip with id 0x%04X, rev 0x%02X and package 0x%02X\n", |
324 | "package 0x%02X\n", bus->chip_id, bus->chip_rev, | 322 | bus->chip_id, bus->chip_rev, bus->chip_package); |
325 | bus->chip_package); | ||
326 | if (!bus->nr_devices) | 323 | if (!bus->nr_devices) |
327 | bus->nr_devices = chipid_to_nrcores(bus->chip_id); | 324 | bus->nr_devices = chipid_to_nrcores(bus->chip_id); |
328 | if (bus->nr_devices > ARRAY_SIZE(bus->devices)) { | 325 | if (bus->nr_devices > ARRAY_SIZE(bus->devices)) { |
329 | ssb_printk(KERN_ERR PFX | 326 | ssb_err("More than %d ssb cores found (%d)\n", |
330 | "More than %d ssb cores found (%d)\n", | 327 | SSB_MAX_NR_CORES, bus->nr_devices); |
331 | SSB_MAX_NR_CORES, bus->nr_devices); | ||
332 | goto err_unmap; | 328 | goto err_unmap; |
333 | } | 329 | } |
334 | if (bus->bustype == SSB_BUSTYPE_SSB) { | 330 | if (bus->bustype == SSB_BUSTYPE_SSB) { |
@@ -370,8 +366,7 @@ int ssb_bus_scan(struct ssb_bus *bus, | |||
370 | nr_80211_cores++; | 366 | nr_80211_cores++; |
371 | if (nr_80211_cores > 1) { | 367 | if (nr_80211_cores > 1) { |
372 | if (!we_support_multiple_80211_cores(bus)) { | 368 | if (!we_support_multiple_80211_cores(bus)) { |
373 | ssb_dprintk(KERN_INFO PFX "Ignoring additional " | 369 | ssb_dbg("Ignoring additional 802.11 core\n"); |
374 | "802.11 core\n"); | ||
375 | continue; | 370 | continue; |
376 | } | 371 | } |
377 | } | 372 | } |
@@ -379,8 +374,7 @@ int ssb_bus_scan(struct ssb_bus *bus, | |||
379 | case SSB_DEV_EXTIF: | 374 | case SSB_DEV_EXTIF: |
380 | #ifdef CONFIG_SSB_DRIVER_EXTIF | 375 | #ifdef CONFIG_SSB_DRIVER_EXTIF |
381 | if (bus->extif.dev) { | 376 | if (bus->extif.dev) { |
382 | ssb_printk(KERN_WARNING PFX | 377 | ssb_warn("WARNING: Multiple EXTIFs found\n"); |
383 | "WARNING: Multiple EXTIFs found\n"); | ||
384 | break; | 378 | break; |
385 | } | 379 | } |
386 | bus->extif.dev = dev; | 380 | bus->extif.dev = dev; |
@@ -388,8 +382,7 @@ int ssb_bus_scan(struct ssb_bus *bus, | |||
388 | break; | 382 | break; |
389 | case SSB_DEV_CHIPCOMMON: | 383 | case SSB_DEV_CHIPCOMMON: |
390 | if (bus->chipco.dev) { | 384 | if (bus->chipco.dev) { |
391 | ssb_printk(KERN_WARNING PFX | 385 | ssb_warn("WARNING: Multiple ChipCommon found\n"); |
392 | "WARNING: Multiple ChipCommon found\n"); | ||
393 | break; | 386 | break; |
394 | } | 387 | } |
395 | bus->chipco.dev = dev; | 388 | bus->chipco.dev = dev; |
@@ -398,8 +391,7 @@ int ssb_bus_scan(struct ssb_bus *bus, | |||
398 | case SSB_DEV_MIPS_3302: | 391 | case SSB_DEV_MIPS_3302: |
399 | #ifdef CONFIG_SSB_DRIVER_MIPS | 392 | #ifdef CONFIG_SSB_DRIVER_MIPS |
400 | if (bus->mipscore.dev) { | 393 | if (bus->mipscore.dev) { |
401 | ssb_printk(KERN_WARNING PFX | 394 | ssb_warn("WARNING: Multiple MIPS cores found\n"); |
402 | "WARNING: Multiple MIPS cores found\n"); | ||
403 | break; | 395 | break; |
404 | } | 396 | } |
405 | bus->mipscore.dev = dev; | 397 | bus->mipscore.dev = dev; |
@@ -420,8 +412,7 @@ int ssb_bus_scan(struct ssb_bus *bus, | |||
420 | } | 412 | } |
421 | } | 413 | } |
422 | if (bus->pcicore.dev) { | 414 | if (bus->pcicore.dev) { |
423 | ssb_printk(KERN_WARNING PFX | 415 | ssb_warn("WARNING: Multiple PCI(E) cores found\n"); |
424 | "WARNING: Multiple PCI(E) cores found\n"); | ||
425 | break; | 416 | break; |
426 | } | 417 | } |
427 | bus->pcicore.dev = dev; | 418 | bus->pcicore.dev = dev; |