mmci: fix crash with debug enabled
authorRabin Vincent <rabin@rab.in>
Fri, 17 Apr 2009 03:14:19 +0000 (08:44 +0530)
committerPierre Ossman <pierre@ossman.eu>
Sun, 3 May 2009 20:12:27 +0000 (22:12 +0200)
commit4ea580f1db62c5419e6690878fd61a740f3aae8e
treec1eac49aef0f4a4f097f6bd21790694a6443951a
parent4accfe2577fab83e41db02282570e849f24ddf53
mmci: fix crash with debug enabled

If MMC debugging is enabled, the mmci driver oopses because the DBG
macro uses host->mmc before it is set.  Set it earlier.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Pierre Ossman <pierre@ossman.eu>
drivers/mmc/host/mmci.c