diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2007-05-16 15:29:21 (GMT) |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-05-24 04:51:02 (GMT) |
commit | 9c9f2d63a77325bc050e4ed9255ee8270c067d1a (patch) | |
tree | 8f70e19e66f3ef10e9e15e04fc005491596f60b6 /drivers/mmc/card/block.c | |
parent | 585a2858b970cb6e2e5ca4877eefd18b4dba8ed4 (diff) | |
download | linux-fsl-qoriq-9c9f2d63a77325bc050e4ed9255ee8270c067d1a.tar.xz |
mmc: clean up unused parts of block driver
Remove dead code and unused structs from the block driver.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/card/block.c')
-rw-r--r-- | drivers/mmc/card/block.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index a7562f7..540ff4b 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -135,23 +135,6 @@ struct mmc_blk_request { struct mmc_data data; }; -static int mmc_blk_prep_rq(struct mmc_queue *mq, struct request *req) -{ - struct mmc_blk_data *md = mq->data; - int stat = BLKPREP_OK; - - /* - * If we have no device, we haven't finished initialising. - */ - if (!md || !mq->card) { - printk(KERN_ERR "%s: killing request - no device/host\n", - req->rq_disk->disk_name); - stat = BLKPREP_KILL; - } - - return stat; -} - static u32 mmc_sd_num_wr_blocks(struct mmc_card *card) { int err; @@ -460,7 +443,6 @@ static struct mmc_blk_data *mmc_blk_alloc(struct mmc_card *card) if (ret) goto err_putdisk; - md->queue.prep_fn = mmc_blk_prep_rq; md->queue.issue_fn = mmc_blk_issue_rq; md->queue.data = md; |