Message ID | 1477494281-24246-1-git-send-email-weiyj.lk@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 26/10/16 18:04, Wei Yongjun wrote: > From: Wei Yongjun <weiyongjun1@huawei.com> > > 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 <weiyongjun1@huawei.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> > --- > drivers/mmc/host/sdhci-msm.c | 1 + > 1 file changed, 1 insertion(+) > > 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; > } > > -- 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
On 10/26/2016 06:04 PM, Wei Yongjun wrote: > From: Wei Yongjun <weiyongjun1@huawei.com> > > 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 <weiyongjun1@huawei.com> Acked-by: Georgi Djakov <georgi.djakov@linaro.org> -- 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
On 26 October 2016 at 17:04, Wei Yongjun <weiyj.lk@gmail.com> wrote: > From: Wei Yongjun <weiyongjun1@huawei.com> > > 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 <weiyongjun1@huawei.com> Thanks, applied for fixes! Kind regards Uffe > --- > drivers/mmc/host/sdhci-msm.c | 1 + > 1 file changed, 1 insertion(+) > > 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; > } > -- 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; }