mmc: sdhci-esdhc-imx: do not reference platform data after probe
authorShawn Guo <shawn.guo@linaro.org>
Wed, 6 Jul 2011 14:57:48 +0000 (22:57 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Wed, 27 Jul 2011 01:31:21 +0000 (09:31 +0800)
commit842afc02cf04f0474392b4c5efd808996a804fa6
treefb144a2ee86fca78029c171b3f30753785aeb61e
parent913413c307c919f8b21edccea23a9fd9d9d49a64
mmc: sdhci-esdhc-imx: do not reference platform data after probe

The patch copies platform data into pltfm_imx_data and reference
the data there than platform data after probe.

This work is inspired by Grant Likely and Troy Kisky.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Troy Kisky <troy.kisky@boundarydevices.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Wolfram Sang <w.sang@pengutronix.de>
Cc: Chris Ball <cjb@laptop.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-esdhc-imx.c