diff options
Diffstat (limited to 'drivers/edac/i3000_edac.c')
-rw-r--r-- | drivers/edac/i3000_edac.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/drivers/edac/i3000_edac.c b/drivers/edac/i3000_edac.c index 67975ba252fa..399aec351aa1 100644 --- a/drivers/edac/i3000_edac.c +++ b/drivers/edac/i3000_edac.c | |||
@@ -275,7 +275,7 @@ static void i3000_check(struct mem_ctl_info *mci) | |||
275 | { | 275 | { |
276 | struct i3000_error_info info; | 276 | struct i3000_error_info info; |
277 | 277 | ||
278 | debugf1("MC%d\n", mci->mc_idx); | 278 | edac_dbg(1, "MC%d\n", mci->mc_idx); |
279 | i3000_get_error_info(mci, &info); | 279 | i3000_get_error_info(mci, &info); |
280 | i3000_process_error_info(mci, &info, 1); | 280 | i3000_process_error_info(mci, &info, 1); |
281 | } | 281 | } |
@@ -322,7 +322,7 @@ static int i3000_probe1(struct pci_dev *pdev, int dev_idx) | |||
322 | unsigned long mchbar; | 322 | unsigned long mchbar; |
323 | void __iomem *window; | 323 | void __iomem *window; |
324 | 324 | ||
325 | debugf0("MC:\n"); | 325 | edac_dbg(0, "MC:\n"); |
326 | 326 | ||
327 | pci_read_config_dword(pdev, I3000_MCHBAR, (u32 *) & mchbar); | 327 | pci_read_config_dword(pdev, I3000_MCHBAR, (u32 *) & mchbar); |
328 | mchbar &= I3000_MCHBAR_MASK; | 328 | mchbar &= I3000_MCHBAR_MASK; |
@@ -366,7 +366,7 @@ static int i3000_probe1(struct pci_dev *pdev, int dev_idx) | |||
366 | if (!mci) | 366 | if (!mci) |
367 | return -ENOMEM; | 367 | return -ENOMEM; |
368 | 368 | ||
369 | debugf3("MC: init mci\n"); | 369 | edac_dbg(3, "MC: init mci\n"); |
370 | 370 | ||
371 | mci->pdev = &pdev->dev; | 371 | mci->pdev = &pdev->dev; |
372 | mci->mtype_cap = MEM_FLAG_DDR2; | 372 | mci->mtype_cap = MEM_FLAG_DDR2; |
@@ -399,8 +399,7 @@ static int i3000_probe1(struct pci_dev *pdev, int dev_idx) | |||
399 | cumul_size = value << (I3000_DRB_SHIFT - PAGE_SHIFT); | 399 | cumul_size = value << (I3000_DRB_SHIFT - PAGE_SHIFT); |
400 | if (interleaved) | 400 | if (interleaved) |
401 | cumul_size <<= 1; | 401 | cumul_size <<= 1; |
402 | debugf3("MC: (%d) cumul_size 0x%x\n", | 402 | edac_dbg(3, "MC: (%d) cumul_size 0x%x\n", i, cumul_size); |
403 | i, cumul_size); | ||
404 | if (cumul_size == last_cumul_size) | 403 | if (cumul_size == last_cumul_size) |
405 | continue; | 404 | continue; |
406 | 405 | ||
@@ -429,7 +428,7 @@ static int i3000_probe1(struct pci_dev *pdev, int dev_idx) | |||
429 | 428 | ||
430 | rc = -ENODEV; | 429 | rc = -ENODEV; |
431 | if (edac_mc_add_mc(mci)) { | 430 | if (edac_mc_add_mc(mci)) { |
432 | debugf3("MC: failed edac_mc_add_mc()\n"); | 431 | edac_dbg(3, "MC: failed edac_mc_add_mc()\n"); |
433 | goto fail; | 432 | goto fail; |
434 | } | 433 | } |
435 | 434 | ||
@@ -445,7 +444,7 @@ static int i3000_probe1(struct pci_dev *pdev, int dev_idx) | |||
445 | } | 444 | } |
446 | 445 | ||
447 | /* get this far and it's successful */ | 446 | /* get this far and it's successful */ |
448 | debugf3("MC: success\n"); | 447 | edac_dbg(3, "MC: success\n"); |
449 | return 0; | 448 | return 0; |
450 | 449 | ||
451 | fail: | 450 | fail: |
@@ -461,7 +460,7 @@ static int __devinit i3000_init_one(struct pci_dev *pdev, | |||
461 | { | 460 | { |
462 | int rc; | 461 | int rc; |
463 | 462 | ||
464 | debugf0("MC:\n"); | 463 | edac_dbg(0, "MC:\n"); |
465 | 464 | ||
466 | if (pci_enable_device(pdev) < 0) | 465 | if (pci_enable_device(pdev) < 0) |
467 | return -EIO; | 466 | return -EIO; |
@@ -477,7 +476,7 @@ static void __devexit i3000_remove_one(struct pci_dev *pdev) | |||
477 | { | 476 | { |
478 | struct mem_ctl_info *mci; | 477 | struct mem_ctl_info *mci; |
479 | 478 | ||
480 | debugf0("\n"); | 479 | edac_dbg(0, "\n"); |
481 | 480 | ||
482 | if (i3000_pci) | 481 | if (i3000_pci) |
483 | edac_pci_release_generic_ctl(i3000_pci); | 482 | edac_pci_release_generic_ctl(i3000_pci); |
@@ -511,7 +510,7 @@ static int __init i3000_init(void) | |||
511 | { | 510 | { |
512 | int pci_rc; | 511 | int pci_rc; |
513 | 512 | ||
514 | debugf3("MC:\n"); | 513 | edac_dbg(3, "MC:\n"); |
515 | 514 | ||
516 | /* Ensure that the OPSTATE is set correctly for POLL or NMI */ | 515 | /* Ensure that the OPSTATE is set correctly for POLL or NMI */ |
517 | opstate_init(); | 516 | opstate_init(); |
@@ -525,14 +524,14 @@ static int __init i3000_init(void) | |||
525 | mci_pdev = pci_get_device(PCI_VENDOR_ID_INTEL, | 524 | mci_pdev = pci_get_device(PCI_VENDOR_ID_INTEL, |
526 | PCI_DEVICE_ID_INTEL_3000_HB, NULL); | 525 | PCI_DEVICE_ID_INTEL_3000_HB, NULL); |
527 | if (!mci_pdev) { | 526 | if (!mci_pdev) { |
528 | debugf0("i3000 pci_get_device fail\n"); | 527 | edac_dbg(0, "i3000 pci_get_device fail\n"); |
529 | pci_rc = -ENODEV; | 528 | pci_rc = -ENODEV; |
530 | goto fail1; | 529 | goto fail1; |
531 | } | 530 | } |
532 | 531 | ||
533 | pci_rc = i3000_init_one(mci_pdev, i3000_pci_tbl); | 532 | pci_rc = i3000_init_one(mci_pdev, i3000_pci_tbl); |
534 | if (pci_rc < 0) { | 533 | if (pci_rc < 0) { |
535 | debugf0("i3000 init fail\n"); | 534 | edac_dbg(0, "i3000 init fail\n"); |
536 | pci_rc = -ENODEV; | 535 | pci_rc = -ENODEV; |
537 | goto fail1; | 536 | goto fail1; |
538 | } | 537 | } |
@@ -552,7 +551,7 @@ fail0: | |||
552 | 551 | ||
553 | static void __exit i3000_exit(void) | 552 | static void __exit i3000_exit(void) |
554 | { | 553 | { |
555 | debugf3("MC:\n"); | 554 | edac_dbg(3, "MC:\n"); |
556 | 555 | ||
557 | pci_unregister_driver(&i3000_driver); | 556 | pci_unregister_driver(&i3000_driver); |
558 | if (!i3000_registered) { | 557 | if (!i3000_registered) { |