From: Mike Frysinger Date: Wed, 7 Jan 2009 15:14:39 +0000 (+0800) Subject: Blackfin arch: fix bug: kernel crash when enable SDIO host driver X-Git-Tag: v2.6.29-rc1~189^2~2 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=8d8921a2243d7355d6ac3a42908c87999bf09295;p=linux-2.6-omap-h63xx.git Blackfin arch: fix bug: kernel crash when enable SDIO host driver update bfin-sdh platform data to fix this issue. Pointed-out-by: Dominik Herwald Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu --- diff --git a/arch/blackfin/mach-bf548/boards/cm_bf548.c b/arch/blackfin/mach-bf548/boards/cm_bf548.c index cd6b8a3594e..f53ad682530 100644 --- a/arch/blackfin/mach-bf548/boards/cm_bf548.c +++ b/arch/blackfin/mach-bf548/boards/cm_bf548.c @@ -43,6 +43,7 @@ #include #include #include +#include #include #include #include @@ -449,9 +450,18 @@ static struct platform_device bf5xx_nand_device = { #endif #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) +static struct bfin_sd_host bfin_sdh_data = { + .dma_chan = CH_SDH, + .irq_int0 = IRQ_SDH_MASK0, + .pin_req = {P_SD_D0, P_SD_D1, P_SD_D2, P_SD_D3, P_SD_CLK, P_SD_CMD, 0}, +}; + static struct platform_device bf54x_sdh_device = { .name = "bfin-sdh", .id = 0, + .dev = { + .platform_data = &bfin_sdh_data, + }, }; #endif