linux/drivers/mmc
Ulf Hansson 9116752f51 mmc: core: Return error at failure of request CD/WP in mmc_of_parse()
Instead of just printing an error when mmc_of_parse() fails to request
CD/WP GPIO pins, let's propagate all errors, except for -ENOENT.
Earlier only -EPROBE_DEFER was handled correctly.

As a side effect of this change and by relying on host drivers to
handle the errors during ->probe(), we don't need to free any data in
the error path.

This also means we are actually fixing a bug, since we remove the call
to mmc_gpio_free_cd() which wasn't the correct function to invoke to
handle cleanup. Instead that should have been mmc_gpiod_free_cd().

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2015-01-19 09:56:14 +01:00
..
card mmc: queue: Improve error handling during allocation of bounce buffers 2014-12-05 10:33:17 +01:00
core mmc: core: Return error at failure of request CD/WP in mmc_of_parse() 2015-01-19 09:56:14 +01:00
host mmc: sdhci-st: Do cleanup while mmc_of_parse() return an error 2015-01-19 09:56:14 +01:00
Kconfig
Makefile mmc: sdhci-pci: add platform data 2012-01-11 23:58:47 -05:00