Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68529
b: refs/heads/master
c: 06ed24e
h: refs/heads/master
i:
  68527: 4a41e5c
v: v3
  • Loading branch information
David Woodhouse committed Oct 6, 2007
1 parent 31df58a commit 0c873f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 39fd179a7bfca026a269724a1f4ee5eb3f10419a
refs/heads/master: 06ed24e5773346eb13579a4ae9599502bc78e4f7
8 changes: 7 additions & 1 deletion trunk/drivers/mtd/nand/cafe_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,11 @@ static int __devinit cafe_nand_probe(struct pci_dev *pdev,
uint32_t ctrl;
int err = 0;

/* Very old versions shared the same PCI ident for all three
functions on the chip. Verify the class too... */
if ((pdev->class >> 8) != PCI_CLASS_MEMORY_FLASH)
return -ENODEV;

err = pci_enable_device(pdev);
if (err)
return err;
Expand Down Expand Up @@ -816,7 +821,8 @@ static void __devexit cafe_nand_remove(struct pci_dev *pdev)
}

static struct pci_device_id cafe_nand_tbl[] = {
{ 0x11ab, 0x4100, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MEMORY_FLASH << 8, 0xFFFF0 }
{ 0x11ab, 0x4100, PCI_ANY_ID, PCI_ANY_ID },
{ }
};

MODULE_DEVICE_TABLE(pci, cafe_nand_tbl);
Expand Down

0 comments on commit 0c873f9

Please sign in to comment.