aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/i82443bxgx_edac.c
diff options
context:
space:
mode:
authorDave Jiang <djiang@mvista.com>2007-07-19 04:50:10 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 13:04:55 -0400
commit456a2f9552e7849475f4aea1a9aa4c0e54b3ddda (patch)
treedf1a120c837fe4c4635c55d81e249ee6d06f4436 /drivers/edac/i82443bxgx_edac.c
parentcddbfcacf02dc2d5b074fc2717358a7529a190db (diff)
drivers/edac: drivers to use new PCI operation
Move x86 drivers to new pci controller setup Signed-off-by: Dave Jiang <djiang@mvista.com> Signed-off-by: Douglas Thompson <dougthompson@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/edac/i82443bxgx_edac.c')
-rw-r--r--drivers/edac/i82443bxgx_edac.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/edac/i82443bxgx_edac.c b/drivers/edac/i82443bxgx_edac.c
index c0070aba87bb..d190104081ca 100644
--- a/drivers/edac/i82443bxgx_edac.c
+++ b/drivers/edac/i82443bxgx_edac.c
@@ -111,6 +111,8 @@ struct i82443bxgx_edacmc_error_info {
111 u32 eap; 111 u32 eap;
112}; 112};
113 113
114static struct edac_pci_ctl_info *i82443bxgx_pci;
115
114static void i82443bxgx_edacmc_get_error_info(struct mem_ctl_info *mci, 116static void i82443bxgx_edacmc_get_error_info(struct mem_ctl_info *mci,
115 struct i82443bxgx_edacmc_error_info 117 struct i82443bxgx_edacmc_error_info
116 *info) 118 *info)
@@ -316,6 +318,17 @@ static int i82443bxgx_edacmc_probe1(struct pci_dev *pdev, int dev_idx)
316 goto fail; 318 goto fail;
317 } 319 }
318 320
321 /* allocating generic PCI control info */
322 i82443bxgx_pci = edac_pci_create_generic_ctl(&pdev->dev, EDAC_MOD_STR);
323 if (!i82443bxgx_pci) {
324 printk(KERN_WARNING
325 "%s(): Unable to create PCI control\n",
326 __func__);
327 printk(KERN_WARNING
328 "%s(): PCI error report via EDAC not setup\n",
329 __func__);
330 }
331
319 debugf3("MC: " __FILE__ ": %s(): success\n", __func__); 332 debugf3("MC: " __FILE__ ": %s(): success\n", __func__);
320 return 0; 333 return 0;
321 334
@@ -342,6 +355,9 @@ static void __devexit i82443bxgx_edacmc_remove_one(struct pci_dev *pdev)
342 355
343 debugf0(__FILE__ ": %s()\n", __func__); 356 debugf0(__FILE__ ": %s()\n", __func__);
344 357
358 if (i82443bxgx_pci)
359 edac_pci_release_generic_ctl(i82443bxgx_pci);
360
345 if ((mci = edac_mc_del_mc(&pdev->dev)) == NULL) 361 if ((mci = edac_mc_del_mc(&pdev->dev)) == NULL)
346 return; 362 return;
347 363