mmc: sdhci-spear: fix platform_data usage
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 28 Feb 2014 21:32:34 +0000 (21:32 +0000)
committerChris Ball <chris@printf.net>
Tue, 4 Mar 2014 21:28:39 +0000 (16:28 -0500)
commitfcdb7c8f5019f77b1f55739a1caf9168d3b455d4
tree521af2903ea711ab26d85289d4a4efab48d427d4
parent142dbab951fb9d2281e69f8d7522e6b7e0553ec0
mmc: sdhci-spear: fix platform_data usage

sdhci-spear is unsafe should a probe fail or defer, since it overwrites
the platform_data with its own driver-private data.  It's trivial to
fix as SDHCI allows for driver-private data to be appended to its own
structure - we just need to arrange the code to allow this.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/host/sdhci-spear.c