mmc: omap_hsmmc: fix NULL pointer dereference for dt boot
authorBalaji T K <balajitk@ti.com>
Mon, 15 Oct 2012 16:05:08 +0000 (21:35 +0530)
committerChris Ball <cjb@laptop.org>
Wed, 7 Nov 2012 20:01:54 +0000 (15:01 -0500)
commit9ea28ecbeb090159a3383ff60b29dee00c489774
tree292d044d8c4f1fe9a7464b685debea36ceaf7e27
parent9d1f02864408c20dbbfaa661231c7afb5a8fc028
mmc: omap_hsmmc: fix NULL pointer dereference for dt boot

dev->platform_data is NULL in case of device tree boot,
instead use the saved version in struct omap_hsmmc_host.

Signed-off-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Venkatraman S <svenkatr@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/omap_hsmmc.c