diff options
Diffstat (limited to 'drivers/mtd/nand/cafe_nand.c')
-rw-r--r-- | drivers/mtd/nand/cafe_nand.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mtd/nand/cafe_nand.c b/drivers/mtd/nand/cafe_nand.c index da6ceaa80ba1..95345d051579 100644 --- a/drivers/mtd/nand/cafe_nand.c +++ b/drivers/mtd/nand/cafe_nand.c | |||
@@ -626,10 +626,12 @@ static int __devinit cafe_nand_probe(struct pci_dev *pdev, | |||
626 | { | 626 | { |
627 | struct mtd_info *mtd; | 627 | struct mtd_info *mtd; |
628 | struct cafe_priv *cafe; | 628 | struct cafe_priv *cafe; |
629 | struct mtd_partition *parts; | ||
630 | uint32_t ctrl; | 629 | uint32_t ctrl; |
631 | int nr_parts; | ||
632 | int err = 0; | 630 | int err = 0; |
631 | #ifdef CONFIG_MTD_PARTITIONS | ||
632 | struct mtd_partition *parts; | ||
633 | int nr_parts; | ||
634 | #endif | ||
633 | 635 | ||
634 | /* Very old versions shared the same PCI ident for all three | 636 | /* Very old versions shared the same PCI ident for all three |
635 | functions on the chip. Verify the class too... */ | 637 | functions on the chip. Verify the class too... */ |