aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/i3000_edac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edac/i3000_edac.c')
-rw-r--r--drivers/edac/i3000_edac.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/edac/i3000_edac.c b/drivers/edac/i3000_edac.c
index 812213da7f91..67975ba252fa 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: %s()\n", mci->mc_idx, __func__); 278 debugf1("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: %s()\n", __func__); 325 debugf0("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: %s(): init mci\n", __func__); 369 debugf3("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,8 @@ 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: %s(): (%d) cumul_size 0x%x\n", 402 debugf3("MC: (%d) cumul_size 0x%x\n",
403 __func__, i, cumul_size); 403 i, cumul_size);
404 if (cumul_size == last_cumul_size) 404 if (cumul_size == last_cumul_size)
405 continue; 405 continue;
406 406
@@ -429,7 +429,7 @@ static int i3000_probe1(struct pci_dev *pdev, int dev_idx)
429 429
430 rc = -ENODEV; 430 rc = -ENODEV;
431 if (edac_mc_add_mc(mci)) { 431 if (edac_mc_add_mc(mci)) {
432 debugf3("MC: %s(): failed edac_mc_add_mc()\n", __func__); 432 debugf3("MC: failed edac_mc_add_mc()\n");
433 goto fail; 433 goto fail;
434 } 434 }
435 435
@@ -445,7 +445,7 @@ static int i3000_probe1(struct pci_dev *pdev, int dev_idx)
445 } 445 }
446 446
447 /* get this far and it's successful */ 447 /* get this far and it's successful */
448 debugf3("MC: %s(): success\n", __func__); 448 debugf3("MC: success\n");
449 return 0; 449 return 0;
450 450
451fail: 451fail:
@@ -461,7 +461,7 @@ static int __devinit i3000_init_one(struct pci_dev *pdev,
461{ 461{
462 int rc; 462 int rc;
463 463
464 debugf0("MC: %s()\n", __func__); 464 debugf0("MC:\n");
465 465
466 if (pci_enable_device(pdev) < 0) 466 if (pci_enable_device(pdev) < 0)
467 return -EIO; 467 return -EIO;
@@ -477,7 +477,7 @@ static void __devexit i3000_remove_one(struct pci_dev *pdev)
477{ 477{
478 struct mem_ctl_info *mci; 478 struct mem_ctl_info *mci;
479 479
480 debugf0("%s()\n", __func__); 480 debugf0("\n");
481 481
482 if (i3000_pci) 482 if (i3000_pci)
483 edac_pci_release_generic_ctl(i3000_pci); 483 edac_pci_release_generic_ctl(i3000_pci);
@@ -511,7 +511,7 @@ static int __init i3000_init(void)
511{ 511{
512 int pci_rc; 512 int pci_rc;
513 513
514 debugf3("MC: %s()\n", __func__); 514 debugf3("MC:\n");
515 515
516 /* Ensure that the OPSTATE is set correctly for POLL or NMI */ 516 /* Ensure that the OPSTATE is set correctly for POLL or NMI */
517 opstate_init(); 517 opstate_init();
@@ -552,7 +552,7 @@ fail0:
552 552
553static void __exit i3000_exit(void) 553static void __exit i3000_exit(void)
554{ 554{
555 debugf3("MC: %s()\n", __func__); 555 debugf3("MC:\n");
556 556
557 pci_unregister_driver(&i3000_driver); 557 pci_unregister_driver(&i3000_driver);
558 if (!i3000_registered) { 558 if (!i3000_registered) {