aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-01-13 16:44:18 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-01-13 16:44:18 -0500
commit51828abc17a4ae0f7fb3879e00a30da7bdc7ca20 (patch)
tree53d45f0d2bb11466a24f9b9ca898c29538a023aa /drivers
parent43ecb9a33ba8c93ebbda81d48ca05f0d1bbf9056 (diff)
[MMC] mmc_blk_probe() warning fix
drivers/mmc/mmc_block.c: In function `mmc_blk_probe': drivers/mmc/mmc_block.c:467: warning: long unsigned int format, different type arg (arg 5) We don't know what size sector_t is - cast it. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/mmc_block.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mmc/mmc_block.c b/drivers/mmc/mmc_block.c
index 9b7c37e0e57..5b014c370e8 100644
--- a/drivers/mmc/mmc_block.c
+++ b/drivers/mmc/mmc_block.c
@@ -462,9 +462,10 @@ static int mmc_blk_probe(struct mmc_card *card)
462 if (err) 462 if (err)
463 goto out; 463 goto out;
464 464
465 printk(KERN_INFO "%s: %s %s %luKiB %s\n", 465 printk(KERN_INFO "%s: %s %s %lluKiB %s\n",
466 md->disk->disk_name, mmc_card_id(card), mmc_card_name(card), 466 md->disk->disk_name, mmc_card_id(card), mmc_card_name(card),
467 get_capacity(md->disk) >> 1, md->read_only ? "(ro)" : ""); 467 (unsigned long long)(get_capacity(md->disk) >> 1),
468 md->read_only ? "(ro)" : "");
468 469
469 mmc_set_drvdata(card, md); 470 mmc_set_drvdata(card, md);
470 add_disk(md->disk); 471 add_disk(md->disk);