Re: [PATCH 1/2] mmc: sdhci-esdhc: simplify cd_gpio, wp_gpio

2011-07-03 Thread Wolfram Sang
On Fri, Jul 01, 2011 at 04:13:38PM -0700, Troy Kisky wrote: > Currently, platform data is referenced by non init functions. > Copy these fields into locally defined struct pltfm_imx_data. > > The code also currently frees imx_data on troubles with > cd_gpio, but returns 0 anyway. Now the code igno

[PATCH 1/2] mmc: sdhci-esdhc: simplify cd_gpio, wp_gpio

2011-07-01 Thread Troy Kisky
Currently, platform data is referenced by non init functions. Copy these fields into locally defined struct pltfm_imx_data. The code also currently frees imx_data on troubles with cd_gpio, but returns 0 anyway. Now the code ignores cd_gpio and wp_gpio if the values cause an error. Also, allow mx5