diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2006-05-24 08:20:45 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-24 15:35:31 (GMT) |
commit | 51c403274093767d6dc30703d67e9f0b255c7439 (patch) | |
tree | 2fcf20613a2366f59635df0c00f7dc6c0d551ede | |
parent | 387e2b0439026aa738a9edca15a57e5c0bcb4dfc (diff) | |
download | linux-fsl-qoriq-51c403274093767d6dc30703d67e9f0b255c7439.tar.xz |
[MMC] Fix premature use of md->disk
md->disk was being used in a debug message before it was allocated.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | drivers/mmc/mmc_block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mmc_block.c b/drivers/mmc/mmc_block.c index e39cc05..587458b 100644 --- a/drivers/mmc/mmc_block.c +++ b/drivers/mmc/mmc_block.c @@ -353,7 +353,7 @@ static struct mmc_blk_data *mmc_blk_alloc(struct mmc_card *card) */ printk(KERN_ERR "%s: unable to select block size for " "writing (rb%u wb%u rp%u wp%u)\n", - md->disk->disk_name, + mmc_card_id(card), 1 << card->csd.read_blkbits, 1 << card->csd.write_blkbits, card->csd.read_partial, |