aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc/mmc_queue.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-09-12 17:00:10 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-01 14:52:00 -0800
commitfcaf71fd51f9cfc504455d3e19ec242e4b2073ed (patch)
tree54b227d3092eff0bbc304cbf6169dcef36816a7f /drivers/mmc/mmc_queue.c
parent04880edae5e1027d61241beb5ac37b520755f2ab (diff)
Driver core: convert mmc code to use struct device
Converts from using struct "class_device" to "struct device" making everything show up properly in /sys/devices/ with symlinks from the /sys/class directory. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/mmc/mmc_queue.c')
-rw-r--r--drivers/mmc/mmc_queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/mmc_queue.c b/drivers/mmc/mmc_queue.c
index 4ccdd82b680..61a1de85cb2 100644
--- a/drivers/mmc/mmc_queue.c
+++ b/drivers/mmc/mmc_queue.c
@@ -130,8 +130,8 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, spinlock_t *lock
u64 limit = BLK_BOUNCE_HIGH;
int ret;
- if (host->dev->dma_mask && *host->dev->dma_mask)
- limit = *host->dev->dma_mask;
+ if (mmc_dev(host)->dma_mask && *mmc_dev(host)->dma_mask)
+ limit = *mmc_dev(host)->dma_mask;
mq->card = card;
mq->queue = blk_init_queue(mmc_request, lock);