diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/Kconfig | 12 | ||||
-rw-r--r-- | drivers/mtd/devices/Kconfig | 2 | ||||
-rw-r--r-- | drivers/mtd/mtd_blkdevs.c | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index a03e862851db..a304b34c2632 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig | |||
@@ -166,7 +166,7 @@ config MTD_CHAR | |||
166 | 166 | ||
167 | config MTD_BLOCK | 167 | config MTD_BLOCK |
168 | tristate "Caching block device access to MTD devices" | 168 | tristate "Caching block device access to MTD devices" |
169 | depends on MTD | 169 | depends on MTD && BLOCK |
170 | ---help--- | 170 | ---help--- |
171 | Although most flash chips have an erase size too large to be useful | 171 | Although most flash chips have an erase size too large to be useful |
172 | as block devices, it is possible to use MTD devices which are based | 172 | as block devices, it is possible to use MTD devices which are based |
@@ -188,7 +188,7 @@ config MTD_BLOCK | |||
188 | 188 | ||
189 | config MTD_BLOCK_RO | 189 | config MTD_BLOCK_RO |
190 | tristate "Readonly block device access to MTD devices" | 190 | tristate "Readonly block device access to MTD devices" |
191 | depends on MTD_BLOCK!=y && MTD | 191 | depends on MTD_BLOCK!=y && MTD && BLOCK |
192 | help | 192 | help |
193 | This allows you to mount read-only file systems (such as cramfs) | 193 | This allows you to mount read-only file systems (such as cramfs) |
194 | from an MTD device, without the overhead (and danger) of the caching | 194 | from an MTD device, without the overhead (and danger) of the caching |
@@ -199,7 +199,7 @@ config MTD_BLOCK_RO | |||
199 | 199 | ||
200 | config FTL | 200 | config FTL |
201 | tristate "FTL (Flash Translation Layer) support" | 201 | tristate "FTL (Flash Translation Layer) support" |
202 | depends on MTD | 202 | depends on MTD && BLOCK |
203 | ---help--- | 203 | ---help--- |
204 | This provides support for the original Flash Translation Layer which | 204 | This provides support for the original Flash Translation Layer which |
205 | is part of the PCMCIA specification. It uses a kind of pseudo- | 205 | is part of the PCMCIA specification. It uses a kind of pseudo- |
@@ -215,7 +215,7 @@ config FTL | |||
215 | 215 | ||
216 | config NFTL | 216 | config NFTL |
217 | tristate "NFTL (NAND Flash Translation Layer) support" | 217 | tristate "NFTL (NAND Flash Translation Layer) support" |
218 | depends on MTD | 218 | depends on MTD && BLOCK |
219 | ---help--- | 219 | ---help--- |
220 | This provides support for the NAND Flash Translation Layer which is | 220 | This provides support for the NAND Flash Translation Layer which is |
221 | used on M-Systems' DiskOnChip devices. It uses a kind of pseudo- | 221 | used on M-Systems' DiskOnChip devices. It uses a kind of pseudo- |
@@ -238,7 +238,7 @@ config NFTL_RW | |||
238 | 238 | ||
239 | config INFTL | 239 | config INFTL |
240 | tristate "INFTL (Inverse NAND Flash Translation Layer) support" | 240 | tristate "INFTL (Inverse NAND Flash Translation Layer) support" |
241 | depends on MTD | 241 | depends on MTD && BLOCK |
242 | ---help--- | 242 | ---help--- |
243 | This provides support for the Inverse NAND Flash Translation | 243 | This provides support for the Inverse NAND Flash Translation |
244 | Layer which is used on M-Systems' newer DiskOnChip devices. It | 244 | Layer which is used on M-Systems' newer DiskOnChip devices. It |
@@ -255,7 +255,7 @@ config INFTL | |||
255 | 255 | ||
256 | config RFD_FTL | 256 | config RFD_FTL |
257 | tristate "Resident Flash Disk (Flash Translation Layer) support" | 257 | tristate "Resident Flash Disk (Flash Translation Layer) support" |
258 | depends on MTD | 258 | depends on MTD && BLOCK |
259 | ---help--- | 259 | ---help--- |
260 | This provides support for the flash translation layer known | 260 | This provides support for the flash translation layer known |
261 | as the Resident Flash Disk (RFD), as used by the Embedded BIOS | 261 | as the Resident Flash Disk (RFD), as used by the Embedded BIOS |
diff --git a/drivers/mtd/devices/Kconfig b/drivers/mtd/devices/Kconfig index 16c02b5ccf7e..440f6851da69 100644 --- a/drivers/mtd/devices/Kconfig +++ b/drivers/mtd/devices/Kconfig | |||
@@ -136,7 +136,7 @@ config MTDRAM_ABS_POS | |||
136 | 136 | ||
137 | config MTD_BLOCK2MTD | 137 | config MTD_BLOCK2MTD |
138 | tristate "MTD using block device" | 138 | tristate "MTD using block device" |
139 | depends on MTD | 139 | depends on MTD && BLOCK |
140 | help | 140 | help |
141 | This driver allows a block device to appear as an MTD. It would | 141 | This driver allows a block device to appear as an MTD. It would |
142 | generally be used in the following cases: | 142 | generally be used in the following cases: |
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index 458d3c8ae1ee..6baf5fe14230 100644 --- a/drivers/mtd/mtd_blkdevs.c +++ b/drivers/mtd/mtd_blkdevs.c | |||
@@ -46,7 +46,7 @@ static int do_blktrans_request(struct mtd_blktrans_ops *tr, | |||
46 | nsect = req->current_nr_sectors; | 46 | nsect = req->current_nr_sectors; |
47 | buf = req->buffer; | 47 | buf = req->buffer; |
48 | 48 | ||
49 | if (!(req->flags & REQ_CMD)) | 49 | if (!blk_fs_request(req)) |
50 | return 0; | 50 | return 0; |
51 | 51 | ||
52 | if (block + nsect > get_capacity(req->rq_disk)) | 52 | if (block + nsect > get_capacity(req->rq_disk)) |