Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119539
b: refs/heads/master
c: 09a8126
h: refs/heads/master
i:
  119537: ee79eed
  119535: 4a8db40
v: v3
  • Loading branch information
Jarkko Lavinen authored and Linus Torvalds committed Dec 2, 2008
1 parent 110a139 commit 74f2347
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 307d114441f905e4576871ff28d06408a1af1a7e
refs/heads/master: 09a81269c7aadaec3375a7ebd9647acbb72f5a67
13 changes: 7 additions & 6 deletions trunk/drivers/edac/i82875p_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,6 @@ static struct pci_dev *mci_pdev; /* init dev: in case that AGP code has
* already registered driver
*/

static int i82875p_registered = 1;

static struct edac_pci_ctl_info *i82875p_pci;

static void i82875p_get_error_info(struct mem_ctl_info *mci,
Expand Down Expand Up @@ -410,6 +408,9 @@ static int i82875p_probe1(struct pci_dev *pdev, int dev_idx)
goto fail0;
}

/* Keeps mci available after edac_mc_del_mc() till edac_mc_free() */
kobject_get(&mci->edac_mci_kobj);

debugf3("%s(): init mci\n", __func__);
mci->dev = &pdev->dev;
mci->mtype_cap = MEM_FLAG_DDR;
Expand Down Expand Up @@ -452,6 +453,7 @@ static int i82875p_probe1(struct pci_dev *pdev, int dev_idx)
return 0;

fail1:
kobject_put(&mci->edac_mci_kobj);
edac_mc_free(mci);

fail0:
Expand Down Expand Up @@ -579,12 +581,11 @@ static void __exit i82875p_exit(void)
{
debugf3("%s()\n", __func__);

i82875p_remove_one(mci_pdev);
pci_dev_put(mci_pdev);

pci_unregister_driver(&i82875p_driver);

if (!i82875p_registered) {
i82875p_remove_one(mci_pdev);
pci_dev_put(mci_pdev);
}
}

module_init(i82875p_init);
Expand Down

0 comments on commit 74f2347

Please sign in to comment.