summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2015-09-14 12:18:55 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-22 14:49:32 -0700
commit31eea56030431c1b160f103cb69033ba94489cb2 (patch)
tree512508ce4fae92cecaea79abc3230e8d6be6524f /block
parent145ba5987d5f093a4a0d1d94cd2923501cf05307 (diff)
mmc: core: Don't return an error for CD/WP GPIOs when GPIOLIB is unset
commit 43934ece2ea72c1dd279c0b0478c1a036d5d77ee upstream. When CONFIG_GPIOLIB is unset, its stubs will return -ENOSYS. That means when the mmc core parses DT for CD/WP GPIOs via mmc_of_parse(), -ENOSYS becomes propagated to the caller. Typically this means that the mmc host driver fails to probe. As the CD/WP GPIOs are already treated as optional, let's extend that to cover the case when CONFIG_GPIOLIB is unset. Reported-by: Michal Simek <michal.simek@xilinx.com> Fixes: 16b23787fc70 ("mmc: sdhci-of-arasan: Call OF parsing for MMC") Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Tested-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions