diff options
Diffstat (limited to 'drivers/edac/sb_edac.c')
-rw-r--r-- | drivers/edac/sb_edac.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index efa488357ae6..96efa496db5a 100644 --- a/drivers/edac/sb_edac.c +++ b/drivers/edac/sb_edac.c | |||
@@ -1064,7 +1064,7 @@ static void sbridge_put_devices(struct sbridge_dev *sbridge_dev) | |||
1064 | { | 1064 | { |
1065 | int i; | 1065 | int i; |
1066 | 1066 | ||
1067 | debugf0(__FILE__ ": %s()\n", __func__); | 1067 | debugf0("\n"); |
1068 | for (i = 0; i < sbridge_dev->n_devs; i++) { | 1068 | for (i = 0; i < sbridge_dev->n_devs; i++) { |
1069 | struct pci_dev *pdev = sbridge_dev->pdev[i]; | 1069 | struct pci_dev *pdev = sbridge_dev->pdev[i]; |
1070 | if (!pdev) | 1070 | if (!pdev) |
@@ -1592,8 +1592,7 @@ static void sbridge_unregister_mci(struct sbridge_dev *sbridge_dev) | |||
1592 | struct sbridge_pvt *pvt; | 1592 | struct sbridge_pvt *pvt; |
1593 | 1593 | ||
1594 | if (unlikely(!mci || !mci->pvt_info)) { | 1594 | if (unlikely(!mci || !mci->pvt_info)) { |
1595 | debugf0("MC: " __FILE__ ": %s(): dev = %p\n", | 1595 | debugf0("MC: dev = %p\n", &sbridge_dev->pdev[0]->dev); |
1596 | __func__, &sbridge_dev->pdev[0]->dev); | ||
1597 | 1596 | ||
1598 | sbridge_printk(KERN_ERR, "Couldn't find mci handler\n"); | 1597 | sbridge_printk(KERN_ERR, "Couldn't find mci handler\n"); |
1599 | return; | 1598 | return; |
@@ -1601,8 +1600,8 @@ static void sbridge_unregister_mci(struct sbridge_dev *sbridge_dev) | |||
1601 | 1600 | ||
1602 | pvt = mci->pvt_info; | 1601 | pvt = mci->pvt_info; |
1603 | 1602 | ||
1604 | debugf0("MC: " __FILE__ ": %s(): mci = %p, dev = %p\n", | 1603 | debugf0("MC: mci = %p, dev = %p\n", |
1605 | __func__, mci, &sbridge_dev->pdev[0]->dev); | 1604 | mci, &sbridge_dev->pdev[0]->dev); |
1606 | 1605 | ||
1607 | mce_unregister_decode_chain(&sbridge_mce_dec); | 1606 | mce_unregister_decode_chain(&sbridge_mce_dec); |
1608 | 1607 | ||
@@ -1640,8 +1639,8 @@ static int sbridge_register_mci(struct sbridge_dev *sbridge_dev) | |||
1640 | if (unlikely(!mci)) | 1639 | if (unlikely(!mci)) |
1641 | return -ENOMEM; | 1640 | return -ENOMEM; |
1642 | 1641 | ||
1643 | debugf0("MC: " __FILE__ ": %s(): mci = %p, dev = %p\n", | 1642 | debugf0("MC: mci = %p, dev = %p\n", |
1644 | __func__, mci, &sbridge_dev->pdev[0]->dev); | 1643 | mci, &sbridge_dev->pdev[0]->dev); |
1645 | 1644 | ||
1646 | pvt = mci->pvt_info; | 1645 | pvt = mci->pvt_info; |
1647 | memset(pvt, 0, sizeof(*pvt)); | 1646 | memset(pvt, 0, sizeof(*pvt)); |
@@ -1676,8 +1675,7 @@ static int sbridge_register_mci(struct sbridge_dev *sbridge_dev) | |||
1676 | 1675 | ||
1677 | /* add this new MC control structure to EDAC's list of MCs */ | 1676 | /* add this new MC control structure to EDAC's list of MCs */ |
1678 | if (unlikely(edac_mc_add_mc(mci))) { | 1677 | if (unlikely(edac_mc_add_mc(mci))) { |
1679 | debugf0("MC: " __FILE__ | 1678 | debugf0("MC: failed edac_mc_add_mc()\n"); |
1680 | ": %s(): failed edac_mc_add_mc()\n", __func__); | ||
1681 | rc = -EINVAL; | 1679 | rc = -EINVAL; |
1682 | goto fail0; | 1680 | goto fail0; |
1683 | } | 1681 | } |
@@ -1755,7 +1753,7 @@ static void __devexit sbridge_remove(struct pci_dev *pdev) | |||
1755 | { | 1753 | { |
1756 | struct sbridge_dev *sbridge_dev; | 1754 | struct sbridge_dev *sbridge_dev; |
1757 | 1755 | ||
1758 | debugf0(__FILE__ ": %s()\n", __func__); | 1756 | debugf0("\n"); |
1759 | 1757 | ||
1760 | /* | 1758 | /* |
1761 | * we have a trouble here: pdev value for removal will be wrong, since | 1759 | * we have a trouble here: pdev value for removal will be wrong, since |
@@ -1804,7 +1802,7 @@ static int __init sbridge_init(void) | |||
1804 | { | 1802 | { |
1805 | int pci_rc; | 1803 | int pci_rc; |
1806 | 1804 | ||
1807 | debugf2("MC: " __FILE__ ": %s()\n", __func__); | 1805 | debugf2("\n"); |
1808 | 1806 | ||
1809 | /* Ensure that the OPSTATE is set correctly for POLL or NMI */ | 1807 | /* Ensure that the OPSTATE is set correctly for POLL or NMI */ |
1810 | opstate_init(); | 1808 | opstate_init(); |
@@ -1826,7 +1824,7 @@ static int __init sbridge_init(void) | |||
1826 | */ | 1824 | */ |
1827 | static void __exit sbridge_exit(void) | 1825 | static void __exit sbridge_exit(void) |
1828 | { | 1826 | { |
1829 | debugf2("MC: " __FILE__ ": %s()\n", __func__); | 1827 | debugf2("\n"); |
1830 | pci_unregister_driver(&sbridge_driver); | 1828 | pci_unregister_driver(&sbridge_driver); |
1831 | } | 1829 | } |
1832 | 1830 | ||