diff options
Diffstat (limited to 'drivers/mmc')
| -rw-r--r-- | drivers/mmc/Kconfig | 2 | ||||
| -rw-r--r-- | drivers/mmc/Makefile | 3 | ||||
| -rw-r--r-- | drivers/mmc/mmc_queue.c | 6 |
3 files changed, 6 insertions, 5 deletions
diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index 45bcf098e762..f540bd88dc5a 100644 --- a/drivers/mmc/Kconfig +++ b/drivers/mmc/Kconfig | |||
| @@ -21,7 +21,7 @@ config MMC_DEBUG | |||
| 21 | 21 | ||
| 22 | config MMC_BLOCK | 22 | config MMC_BLOCK |
| 23 | tristate "MMC block device driver" | 23 | tristate "MMC block device driver" |
| 24 | depends on MMC | 24 | depends on MMC && BLOCK |
| 25 | default y | 25 | default y |
| 26 | help | 26 | help |
| 27 | Say Y here to enable the MMC block device driver support. | 27 | Say Y here to enable the MMC block device driver support. |
diff --git a/drivers/mmc/Makefile b/drivers/mmc/Makefile index d2957e35cc6f..b1f6e03e7aa9 100644 --- a/drivers/mmc/Makefile +++ b/drivers/mmc/Makefile | |||
| @@ -24,7 +24,8 @@ obj-$(CONFIG_MMC_AU1X) += au1xmmc.o | |||
| 24 | obj-$(CONFIG_MMC_OMAP) += omap.o | 24 | obj-$(CONFIG_MMC_OMAP) += omap.o |
| 25 | obj-$(CONFIG_MMC_AT91RM9200) += at91_mci.o | 25 | obj-$(CONFIG_MMC_AT91RM9200) += at91_mci.o |
| 26 | 26 | ||
| 27 | mmc_core-y := mmc.o mmc_queue.o mmc_sysfs.o | 27 | mmc_core-y := mmc.o mmc_sysfs.o |
| 28 | mmc_core-$(CONFIG_BLOCK) += mmc_queue.o | ||
| 28 | 29 | ||
| 29 | ifeq ($(CONFIG_MMC_DEBUG),y) | 30 | ifeq ($(CONFIG_MMC_DEBUG),y) |
| 30 | EXTRA_CFLAGS += -DDEBUG | 31 | EXTRA_CFLAGS += -DDEBUG |
diff --git a/drivers/mmc/mmc_queue.c b/drivers/mmc/mmc_queue.c index 74f8cdeeff0f..4ccdd82b680f 100644 --- a/drivers/mmc/mmc_queue.c +++ b/drivers/mmc/mmc_queue.c | |||
| @@ -28,7 +28,7 @@ static int mmc_prep_request(struct request_queue *q, struct request *req) | |||
| 28 | struct mmc_queue *mq = q->queuedata; | 28 | struct mmc_queue *mq = q->queuedata; |
| 29 | int ret = BLKPREP_KILL; | 29 | int ret = BLKPREP_KILL; |
| 30 | 30 | ||
| 31 | if (req->flags & REQ_SPECIAL) { | 31 | if (blk_special_request(req)) { |
| 32 | /* | 32 | /* |
| 33 | * Special commands already have the command | 33 | * Special commands already have the command |
| 34 | * blocks already setup in req->special. | 34 | * blocks already setup in req->special. |
| @@ -36,7 +36,7 @@ static int mmc_prep_request(struct request_queue *q, struct request *req) | |||
| 36 | BUG_ON(!req->special); | 36 | BUG_ON(!req->special); |
| 37 | 37 | ||
| 38 | ret = BLKPREP_OK; | 38 | ret = BLKPREP_OK; |
| 39 | } else if (req->flags & (REQ_CMD | REQ_BLOCK_PC)) { | 39 | } else if (blk_fs_request(req) || blk_pc_request(req)) { |
| 40 | /* | 40 | /* |
| 41 | * Block I/O requests need translating according | 41 | * Block I/O requests need translating according |
| 42 | * to the protocol. | 42 | * to the protocol. |
| @@ -50,7 +50,7 @@ static int mmc_prep_request(struct request_queue *q, struct request *req) | |||
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | if (ret == BLKPREP_OK) | 52 | if (ret == BLKPREP_OK) |
| 53 | req->flags |= REQ_DONTPREP; | 53 | req->cmd_flags |= REQ_DONTPREP; |
| 54 | 54 | ||
| 55 | return ret; | 55 | return ret; |
| 56 | } | 56 | } |
