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)
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>

No differences found