]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
HSMMC: Fix boot crash on boards without gpio_cd set
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 14 Nov 2008 19:45:16 +0000 (21:45 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 14 Nov 2008 21:42:32 +0000 (13:42 -0800)
commit11b6d3ed9c1c04f04bfcca7ae9e29cc8d38704d3
tree32f32ef090541bc52c8ad99d0e92f12c6494f6bf
parent5ecf98b76fa95078277c9037bb01640fd3de5e2c
HSMMC: Fix boot crash on boards without gpio_cd set

If .gpio_cd is -EINVAL, twl_mmc_late_init() is not called and
hsmmc[x].mmc is not set, so don't use it in twl_mmc*_set_power().

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/mmc-twl4030.c