[MTD] [NAND] fix 2 "unused variable" warnings in cafe_nand.c
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Wed Jun 4 13:59:02 EDT 2008
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=437d0d299f0e08954c3cb680221d7e888e1a857f
Commit: 437d0d299f0e08954c3cb680221d7e888e1a857f
Parent: 1b0b30acf3fc76e5d4d278fa5a8c9c6ac9898745
Author: Toralf Förster <toralf.foerster at gmx.de>
AuthorDate: Mon May 26 20:35:46 2008 +0200
Committer: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Wed Jun 4 17:27:20 2008 +0100
[MTD] [NAND] fix 2 "unused variable" warnings in cafe_nand.c
Signed-off-by: Toralf Förster <toralf.foerster at gmx.de>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
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 da6ceaa..95345d0 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,
{
struct mtd_info *mtd;
struct cafe_priv *cafe;
- struct mtd_partition *parts;
uint32_t ctrl;
- int nr_parts;
int err = 0;
+#ifdef CONFIG_MTD_PARTITIONS
+ struct mtd_partition *parts;
+ int nr_parts;
+#endif
/* Very old versions shared the same PCI ident for all three
functions on the chip. Verify the class too... */
More information about the linux-mtd-cvs
mailing list