mmc: sdhci-acpi: fix error return code in sdhci_acpi_add_own_cd()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 28 May 2013 05:26:25 +0000 (13:26 +0800)
committerChris Ball <cjb@laptop.org>
Thu, 27 Jun 2013 14:56:03 +0000 (10:56 -0400)
commit5a0e8074660444010fee40eebcd57aaaf8d44662
tree378e8e785f6032094b3b93762b9c406fd0f683c5
parent3f7eec62ecb7e30bd2f7e0fc4432d0d08a1aae46
mmc: sdhci-acpi: fix error return code in sdhci_acpi_add_own_cd()

Fix to return a negative error code in the gpio_to_irq() error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-acpi.c