Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45623
b: refs/heads/master
c: c7438d0
h: refs/heads/master
i:
  45621: dc8ce7f
  45619: 8d1ebb8
  45615: 8a10086
v: v3
  • Loading branch information
Alan Cox authored and David Woodhouse committed Oct 21, 2006
1 parent 44b406f commit 33a03ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: f33686b5a79674bec0e1aa553d420485e3a12899
refs/heads/master: c7438d02b384e82261e28fc280167f4e7a65e822
7 changes: 4 additions & 3 deletions trunk/drivers/mtd/maps/esb2rom.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ static void esb2rom_cleanup(struct esb2rom_window *window)
window->virt = NULL;
window->phys = 0;
window->size = 0;
window->pdev = NULL;
}
pci_dev_put(window->pdev);
}

static int __devinit esb2rom_init_one(struct pci_dev *pdev,
Expand All @@ -164,7 +164,7 @@ static int __devinit esb2rom_init_one(struct pci_dev *pdev,
* Also you can page firmware hubs if an 8MiB window isn't enough
* but don't currently handle that case either.
*/
window->pdev = pdev;
window->pdev = pci_dev_get(pdev);

/* RLG: experiment 2. Force the window registers to the widest values */

Expand Down Expand Up @@ -418,7 +418,7 @@ static int __init init_esb2rom(void)
pdev = NULL;
for (id = esb2rom_pci_tbl; id->vendor; id++) {
printk(KERN_DEBUG "device id = %x\n", id->device);
pdev = pci_find_device(id->vendor, id->device, NULL);
pdev = pci_get_device(id->vendor, id->device, NULL);
if (pdev) {
printk(KERN_DEBUG "matched device = %x\n", id->device);
break;
Expand All @@ -427,6 +427,7 @@ static int __init init_esb2rom(void)
if (pdev) {
printk(KERN_DEBUG "matched device id %x\n", id->device);
retVal = esb2rom_init_one(pdev, &esb2rom_pci_tbl[0]);
pci_dev_put(pdev);
printk(KERN_DEBUG "retVal = %d\n", retVal);
return retVal;
}
Expand Down

0 comments on commit 33a03ea

Please sign in to comment.