projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b0b30a
)
[MTD] [NAND] fix 2 "unused variable" warnings in cafe_nand.c
author
Toralf Förster
<toralf.foerster@gmx.de>
Mon, 26 May 2008 18:35:46 +0000
(20:35 +0200)
committer
David Woodhouse
<dwmw2@infradead.org>
Wed, 4 Jun 2008 16:27:20 +0000
(17:27 +0100)
Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/cafe_nand.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/nand/cafe_nand.c
b/drivers/mtd/nand/cafe_nand.c
index da6ceaa80ba137c1c4114a199d59efb09bcf08ed..95345d05157922fdfedf21b6a7d9527215f40be3 100644
(file)
--- 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... */