From: Kevin Liu Date: Wed, 17 Oct 2012 11:04:44 +0000 (+0800) Subject: mmc: sdhci: fix IS_ERR() checking of regulator_get() X-Git-Tag: v3.7-rc5~8^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=657d59823c095e8f03e2744d765f53700331ff8f;p=pandora-kernel.git mmc: sdhci: fix IS_ERR() checking of regulator_get() There are two problems here: The check for vmmc was printing an unnecessary pr_info() when host->vmmc is NULL. The intent of the check for vqmmc was to only remove UHS if we have a regulator that doesn't support the required voltage, but since IS_ERR() doesn't catch NULL, we were actually removing UHS modes if vqmmc isn't present at all -- since it isn't present for most users, this breaks UHS for them. This patch fixes that UHS regression in 3.7-rc1. Signed-off-by: Kevin Liu Signed-off-by: Bin Wang Reviewed-by: Philip Rakity Signed-off-by: Chris Ball --- Reading git-diff-tree failed