Commit 1ef93a0f authored by Adrian Bunk's avatar Adrian Bunk Committed by David Woodhouse

[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: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent a6b1d82d
...@@ -265,8 +265,7 @@ config RFD_FTL ...@@ -265,8 +265,7 @@ config RFD_FTL
config SSFDC config SSFDC
tristate "NAND SSFDC (SmartMedia) read only translation layer" tristate "NAND SSFDC (SmartMedia) read only translation layer"
depends on MTD depends on MTD && BLOCK
default n
help help
This enables read only access to SmartMedia formatted NAND This enables read only access to SmartMedia formatted NAND
flash. You can mount it with FAT file system. flash. You can mount it with FAT file system.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment