aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-10-08 19:16:38 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-10-09 02:25:28 -0400
commit1ef93a0f668c8736cb6b6c3a43a5b8101efa24af (patch)
tree8597393b366e81653f90eb854c92ab2bb696ad36 /drivers
parenta6b1d82d079a99d09761ee5fbc66c49f33b42324 (diff)
[MTD] SSFDC must depend on BLOCK
This patch fixes the following compile error with CONFIG_SSFDC=m, CONFIG_BLOCK=n: <-- snip --> ... CC [M] drivers/mtd/mtd_blkdevs.o /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/mtd/mtd_blkdevs.c:40: warning: ‘struct request’ declared inside parameter list /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/mtd/mtd_blkdevs.c:40: warning: its scope is only this definition or declaration, which is probably not what you want /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/mtd/mtd_blkdevs.c: In function ‘do_blktrans_request’: /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/mtd/mtd_blkdevs.c:45: error: dereferencing pointer to incomplete type ... make[3]: *** [drivers/mtd/mtd_blkdevs.o] Error 1 <-- snip --> Bug report by Jesper Juhl. This patch also removes a pointless "default n" from the SSFDC option. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/Kconfig3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index a304b34c2632..291660abe3a6 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -265,8 +265,7 @@ config RFD_FTL
265 265
266config SSFDC 266config SSFDC
267 tristate "NAND SSFDC (SmartMedia) read only translation layer" 267 tristate "NAND SSFDC (SmartMedia) read only translation layer"
268 depends on MTD 268 depends on MTD && BLOCK
269 default n
270 help 269 help
271 This enables read only access to SmartMedia formatted NAND 270 This enables read only access to SmartMedia formatted NAND
272 flash. You can mount it with FAT file system. 271 flash. You can mount it with FAT file system.