aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/i5000_edac.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-03-21 15:55:02 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-06-11 12:23:41 -0400
commitd90c008963ef638cb7ab7d5eb76362b3c2d379bc (patch)
treea2b394bd9ea90b48ec4f5015c2183c3c9f58e14e /drivers/edac/i5000_edac.c
parent5c4cdb5ae72988ef93f72ad6f46be0e4eea5be8d (diff)
edac: Get rid of the old kobj's from the edac mc code
Now that al users for the old kobj raw access are gone, we can get rid of the legacy kobj-based structures and data. Reviewed-by: Aristeu Rozanski <arozansk@redhat.com> Cc: Doug Thompson <norsk5@yahoo.com> Cc: Michal Marek <mmarek@suse.cz> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac/i5000_edac.c')
-rw-r--r--drivers/edac/i5000_edac.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/edac/i5000_edac.c b/drivers/edac/i5000_edac.c
index a69245ad5f32..a7da4c7ad7fa 100644
--- a/drivers/edac/i5000_edac.c
+++ b/drivers/edac/i5000_edac.c
@@ -1406,7 +1406,6 @@ static int i5000_probe1(struct pci_dev *pdev, int dev_idx)
1406 if (mci == NULL) 1406 if (mci == NULL)
1407 return -ENOMEM; 1407 return -ENOMEM;
1408 1408
1409 kobject_get(&mci->edac_mci_kobj);
1410 debugf0("MC: %s: %s(): mci = %p\n", __FILE__, __func__, mci); 1409 debugf0("MC: %s: %s(): mci = %p\n", __FILE__, __func__, mci);
1411 1410
1412 mci->pdev = &pdev->dev; /* record ptr to the generic device */ 1411 mci->pdev = &pdev->dev; /* record ptr to the generic device */
@@ -1479,7 +1478,6 @@ fail1:
1479 i5000_put_devices(mci); 1478 i5000_put_devices(mci);
1480 1479
1481fail0: 1480fail0:
1482 kobject_put(&mci->edac_mci_kobj);
1483 edac_mc_free(mci); 1481 edac_mc_free(mci);
1484 return -ENODEV; 1482 return -ENODEV;
1485} 1483}
@@ -1525,7 +1523,6 @@ static void __devexit i5000_remove_one(struct pci_dev *pdev)
1525 1523
1526 /* retrieve references to resources, and free those resources */ 1524 /* retrieve references to resources, and free those resources */
1527 i5000_put_devices(mci); 1525 i5000_put_devices(mci);
1528 kobject_put(&mci->edac_mci_kobj);
1529 edac_mc_free(mci); 1526 edac_mc_free(mci);
1530} 1527}
1531 1528