sdio: fix IRQ diagnostic message
authorNicolas Pitre <nico@cam.org>
Wed, 3 Oct 2007 19:32:10 +0000 (15:32 -0400)
committerPierre Ossman <drzeus@drzeus.cx>
Sat, 6 Oct 2007 15:48:57 +0000 (17:48 +0200)
If func is actually null we won't get much from sdio_func_id(func).

Signed-off-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/core/sdio_irq.c

index f78ffeefed52618e56571e8de92a78daf4a4b7ed..e7865059e126b82ec6d330d2a899ce709d7672e0 100644 (file)
@@ -44,7 +44,7 @@ static int process_sdio_pending_irqs(struct mmc_card *card)
                        if (!func) {
                                printk(KERN_WARNING "%s: pending IRQ for "
                                        "non-existant function\n",
-                                       sdio_func_id(func));
+                                       mmc_card_id(card));
                        } else if (func->irq_handler) {
                                func->irq_handler(func);
                                count++;