From: Ulf Hansson Date: Mon, 14 Sep 2015 10:18:55 +0000 (+0200) Subject: mmc: core: Don't return an error for CD/WP GPIOs when GPIOLIB is unset X-Git-Tag: omap-for-v4.3/fixes-rc5~53^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43934ece2ea72c1dd279c0b0478c1a036d5d77ee;p=pandora-kernel.git 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 Fixes: 16b23787fc70 ("mmc: sdhci-of-arasan: Call OF parsing for MMC") Signed-off-by: Ulf Hansson Tested-by: Michal Simek Acked-by: Venu Byravarasu --- Reading git-diff-tree failed