From patchwork Wed Oct 26 15:04:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9397433 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 247E660236 for ; Wed, 26 Oct 2016 15:05:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0627529B0D for ; Wed, 26 Oct 2016 15:05:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC37E29C04; Wed, 26 Oct 2016 15:05:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E543429B0D for ; Wed, 26 Oct 2016 15:04:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753644AbcJZPEy (ORCPT ); Wed, 26 Oct 2016 11:04:54 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35832 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753997AbcJZPEv (ORCPT ); Wed, 26 Oct 2016 11:04:51 -0400 Received: by mail-pf0-f195.google.com with SMTP id s8so22998094pfj.2 for ; Wed, 26 Oct 2016 08:04:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=k/wTigjzsY3OsJCsBX3nFo9ta49ETVOiCq4gB8xMHm0=; b=wTRvqEtww9GOgvEOBE/ok+5KNl2ODonnC5pQQQ8JED3xaX/YE0o0O/oaqqoTOgRWPV OoF6Z53uaqN2xuTLW7SUkxaZ+OeTVjJF1Pav/WZ0SpAfGrHjGdkWsbV4hPYVGgg++WTy xiJsm7i88zVhY9fHuIUmxKO6aREq1QOMiY7nHZDyNsw2Wb38l1/SCJ8w46VaM7Y+VJcF UHpfZa7f5G0tBPQDt9bRbfGpKLv/azA2eXTh5lm/f9JalhJxkVUV5JFXw2kkYj9QDs2B Fosal46KdMK82pC2awfYfwPgFqVZ1xIZ3l6ESfw2iX4+CyJjnwnoYdoO9Yoew+WuL4B5 lxHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=k/wTigjzsY3OsJCsBX3nFo9ta49ETVOiCq4gB8xMHm0=; b=gwBWPJFpGf1rm1L0tM4+xWrW2uboF1IZCmhszcMi1x3ZThnD+LwLTe5/+/uFQ05XGZ LVzHHGpmnshFmxZj/OY7rvufWJbmTkIZqxh34BkCKj8OvrXxDH6Zl6GH5LUo1W97zY7T 05wVfYdzdAC9sv2u2N9aOV1b+fSF/tyUWgSczoOA79h/zqMjS9O/zXEeH+6JUxUDFbdW Ewxw85hOm/qD8PA9Xaio+39/5TTeWt454W+WntXmpYbh7jmBLtzWdfjOcR9VmEqmXzrR 16S+ll2B161jTscpB6ymtQ8e280EeikyNp4xROTL24MjJKLdHKAxpTcYXwlY3dJL2V4z RmOw== X-Gm-Message-State: ABUngveRjJ6B0wWBzME6Po57PMxqY1p6RJuuYYwXg4Cc3w0H18dfOkf3lqYiCKuWBDifkw== X-Received: by 10.99.128.198 with SMTP id j189mr4122614pgd.151.1477494290754; Wed, 26 Oct 2016 08:04:50 -0700 (PDT) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id p4sm5006070pfj.24.2016.10.26.08.04.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Oct 2016 08:04:50 -0700 (PDT) From: Wei Yongjun To: Adrian Hunter , Ulf Hansson , Georgi Djakov Cc: Wei Yongjun , linux-mmc@vger.kernel.org Subject: [PATCH -next] mmc: sdhci-msm: Fix error return code in sdhci_msm_probe() Date: Wed, 26 Oct 2016 15:04:41 +0000 Message-Id: <1477494281-24246-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fix to return a negative error code from the platform_get_irq_byname() error handling case instead of 0, as done elsewhere in this function. Fixes: ad81d3871004 ("mmc: sdhci-msm: Add support for UHS cards") Signed-off-by: Wei Yongjun Acked-by: Adrian Hunter Acked-by: Georgi Djakov --- drivers/mmc/host/sdhci-msm.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index 795f16f..b78d72f 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -649,6 +649,7 @@ static int sdhci_msm_probe(struct platform_device *pdev) if (msm_host->pwr_irq < 0) { dev_err(&pdev->dev, "Get pwr_irq failed (%d)\n", msm_host->pwr_irq); + ret = msm_host->pwr_irq; goto clk_disable; }