diff options
Diffstat (limited to 'drivers/edac/x38_edac.c')
-rw-r--r-- | drivers/edac/x38_edac.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/edac/x38_edac.c b/drivers/edac/x38_edac.c index 70c745422fca..0e1581afadaf 100644 --- a/drivers/edac/x38_edac.c +++ b/drivers/edac/x38_edac.c | |||
@@ -103,10 +103,10 @@ static int how_many_channel(struct pci_dev *pdev) | |||
103 | 103 | ||
104 | pci_read_config_byte(pdev, X38_CAPID0 + 8, &capid0_8b); | 104 | pci_read_config_byte(pdev, X38_CAPID0 + 8, &capid0_8b); |
105 | if (capid0_8b & 0x20) { /* check DCD: Dual Channel Disable */ | 105 | if (capid0_8b & 0x20) { /* check DCD: Dual Channel Disable */ |
106 | debugf0("In single channel mode.\n"); | 106 | edac_dbg(0, "In single channel mode\n"); |
107 | x38_channel_num = 1; | 107 | x38_channel_num = 1; |
108 | } else { | 108 | } else { |
109 | debugf0("In dual channel mode.\n"); | 109 | edac_dbg(0, "In dual channel mode\n"); |
110 | x38_channel_num = 2; | 110 | x38_channel_num = 2; |
111 | } | 111 | } |
112 | 112 | ||
@@ -243,7 +243,7 @@ static void x38_check(struct mem_ctl_info *mci) | |||
243 | { | 243 | { |
244 | struct x38_error_info info; | 244 | struct x38_error_info info; |
245 | 245 | ||
246 | debugf1("MC%d\n", mci->mc_idx); | 246 | edac_dbg(1, "MC%d\n", mci->mc_idx); |
247 | x38_get_and_clear_error_info(mci, &info); | 247 | x38_get_and_clear_error_info(mci, &info); |
248 | x38_process_error_info(mci, &info); | 248 | x38_process_error_info(mci, &info); |
249 | } | 249 | } |
@@ -331,7 +331,7 @@ static int x38_probe1(struct pci_dev *pdev, int dev_idx) | |||
331 | bool stacked; | 331 | bool stacked; |
332 | void __iomem *window; | 332 | void __iomem *window; |
333 | 333 | ||
334 | debugf0("MC:\n"); | 334 | edac_dbg(0, "MC:\n"); |
335 | 335 | ||
336 | window = x38_map_mchbar(pdev); | 336 | window = x38_map_mchbar(pdev); |
337 | if (!window) | 337 | if (!window) |
@@ -352,7 +352,7 @@ static int x38_probe1(struct pci_dev *pdev, int dev_idx) | |||
352 | if (!mci) | 352 | if (!mci) |
353 | return -ENOMEM; | 353 | return -ENOMEM; |
354 | 354 | ||
355 | debugf3("MC: init mci\n"); | 355 | edac_dbg(3, "MC: init mci\n"); |
356 | 356 | ||
357 | mci->pdev = &pdev->dev; | 357 | mci->pdev = &pdev->dev; |
358 | mci->mtype_cap = MEM_FLAG_DDR2; | 358 | mci->mtype_cap = MEM_FLAG_DDR2; |
@@ -402,12 +402,12 @@ static int x38_probe1(struct pci_dev *pdev, int dev_idx) | |||
402 | 402 | ||
403 | rc = -ENODEV; | 403 | rc = -ENODEV; |
404 | if (edac_mc_add_mc(mci)) { | 404 | if (edac_mc_add_mc(mci)) { |
405 | debugf3("MC: failed edac_mc_add_mc()\n"); | 405 | edac_dbg(3, "MC: failed edac_mc_add_mc()\n"); |
406 | goto fail; | 406 | goto fail; |
407 | } | 407 | } |
408 | 408 | ||
409 | /* get this far and it's successful */ | 409 | /* get this far and it's successful */ |
410 | debugf3("MC: success\n"); | 410 | edac_dbg(3, "MC: success\n"); |
411 | return 0; | 411 | return 0; |
412 | 412 | ||
413 | fail: | 413 | fail: |
@@ -423,7 +423,7 @@ static int __devinit x38_init_one(struct pci_dev *pdev, | |||
423 | { | 423 | { |
424 | int rc; | 424 | int rc; |
425 | 425 | ||
426 | debugf0("MC:\n"); | 426 | edac_dbg(0, "MC:\n"); |
427 | 427 | ||
428 | if (pci_enable_device(pdev) < 0) | 428 | if (pci_enable_device(pdev) < 0) |
429 | return -EIO; | 429 | return -EIO; |
@@ -439,7 +439,7 @@ static void __devexit x38_remove_one(struct pci_dev *pdev) | |||
439 | { | 439 | { |
440 | struct mem_ctl_info *mci; | 440 | struct mem_ctl_info *mci; |
441 | 441 | ||
442 | debugf0("\n"); | 442 | edac_dbg(0, "\n"); |
443 | 443 | ||
444 | mci = edac_mc_del_mc(&pdev->dev); | 444 | mci = edac_mc_del_mc(&pdev->dev); |
445 | if (!mci) | 445 | if (!mci) |
@@ -472,7 +472,7 @@ static int __init x38_init(void) | |||
472 | { | 472 | { |
473 | int pci_rc; | 473 | int pci_rc; |
474 | 474 | ||
475 | debugf3("MC:\n"); | 475 | edac_dbg(3, "MC:\n"); |
476 | 476 | ||
477 | /* Ensure that the OPSTATE is set correctly for POLL or NMI */ | 477 | /* Ensure that the OPSTATE is set correctly for POLL or NMI */ |
478 | opstate_init(); | 478 | opstate_init(); |
@@ -486,14 +486,14 @@ static int __init x38_init(void) | |||
486 | mci_pdev = pci_get_device(PCI_VENDOR_ID_INTEL, | 486 | mci_pdev = pci_get_device(PCI_VENDOR_ID_INTEL, |
487 | PCI_DEVICE_ID_INTEL_X38_HB, NULL); | 487 | PCI_DEVICE_ID_INTEL_X38_HB, NULL); |
488 | if (!mci_pdev) { | 488 | if (!mci_pdev) { |
489 | debugf0("x38 pci_get_device fail\n"); | 489 | edac_dbg(0, "x38 pci_get_device fail\n"); |
490 | pci_rc = -ENODEV; | 490 | pci_rc = -ENODEV; |
491 | goto fail1; | 491 | goto fail1; |
492 | } | 492 | } |
493 | 493 | ||
494 | pci_rc = x38_init_one(mci_pdev, x38_pci_tbl); | 494 | pci_rc = x38_init_one(mci_pdev, x38_pci_tbl); |
495 | if (pci_rc < 0) { | 495 | if (pci_rc < 0) { |
496 | debugf0("x38 init fail\n"); | 496 | edac_dbg(0, "x38 init fail\n"); |
497 | pci_rc = -ENODEV; | 497 | pci_rc = -ENODEV; |
498 | goto fail1; | 498 | goto fail1; |
499 | } | 499 | } |
@@ -513,7 +513,7 @@ fail0: | |||
513 | 513 | ||
514 | static void __exit x38_exit(void) | 514 | static void __exit x38_exit(void) |
515 | { | 515 | { |
516 | debugf3("MC:\n"); | 516 | edac_dbg(3, "MC:\n"); |
517 | 517 | ||
518 | pci_unregister_driver(&x38_driver); | 518 | pci_unregister_driver(&x38_driver); |
519 | if (!x38_registered) { | 519 | if (!x38_registered) { |