aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorUlf Hansson <[email protected]>2015-09-14 10:18:55 +0000
committerUlf Hansson <[email protected]>2015-09-29 10:17:03 +0000
commit43934ece2ea72c1dd279c0b0478c1a036d5d77ee (patch)
tree7806d6f79352391d8eab40eba3c1f918825a2d2a /net/switchdev/switchdev.c
parentLinux 4.3-rc3 (diff)
downloadkernel-43934ece2ea72c1dd279c0b0478c1a036d5d77ee.tar.gz
kernel-43934ece2ea72c1dd279c0b0478c1a036d5d77ee.zip
mmc: core: Don't return an error for CD/WP GPIOs when GPIOLIB is unset
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 <[email protected]> Fixes: 16b23787fc70 ("mmc: sdhci-of-arasan: Call OF parsing for MMC") Signed-off-by: Ulf Hansson <[email protected]> Tested-by: Michal Simek <[email protected]> Acked-by: Venu Byravarasu <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions