From patchwork Fri Apr 19 02:11:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 2463001 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 001433FD8C for ; Fri, 19 Apr 2013 02:11:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967760Ab3DSCLN (ORCPT ); Thu, 18 Apr 2013 22:11:13 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:38024 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967687Ab3DSCLM (ORCPT ); Thu, 18 Apr 2013 22:11:12 -0400 Received: by mail-bk0-f46.google.com with SMTP id je9so1549838bkc.33 for ; Thu, 18 Apr 2013 19:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to:cc :content-type; bh=J89H6S+kxfMfxqfAAbOZdB8XFp9gZ1Gqs0ozlAgrF8s=; b=jIr1stU++vHMtrWWhe+Mb8osBGEcHBgPg2jOrNYXf/VHzlMPex2LYdQWUAiq4WX/HQ INx4UFrPmRsaZOUzA+wpwbwSUGyTThiNM+UxcweKjYRpoceCwgDCKGRdgb97IcUfELua ukfGyzy97kNqiM9WIXwzoi4I4mRL2aNkW85522UUMXUZeVQw1xqH83FUqYsFjuQwN2yD iWynDcSYe6ZpMfQO+q8ktf1jWeCIV4mOjaKAnpuv2IZEdMDU3/dIoOntfSzz3OD9ZTBI mUBrdn4bVwSq8iT20x3CB1Ue4hFlqCtvYTcVh3OM5Y4UvHRGczW8vh/w71pHsizm/aVJ v31Q== MIME-Version: 1.0 X-Received: by 10.204.62.9 with SMTP id v9mr3587085bkh.38.1366337471397; Thu, 18 Apr 2013 19:11:11 -0700 (PDT) Received: by 10.204.0.74 with HTTP; Thu, 18 Apr 2013 19:11:11 -0700 (PDT) Date: Fri, 19 Apr 2013 10:11:11 +0800 Message-ID: Subject: [PATCH -next] mmc: mxs-mmc: fix error return code in mxs_mmc_probe() From: Wei Yongjun To: cjb@laptop.org, grant.likely@linaro.org, rob.herring@calxeda.com, shawn.guo@linaro.org, marex@denx.de, fabio.estevam@freescale.com, broonie@opensource.wolfsonmicro.com Cc: yongjun_wei@trendmicro.com.cn, linux-mmc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org From: Wei Yongjun Fix to return -ENODEV in the request dma error case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun Reviewed-by: Marek Vasut --- drivers/mmc/host/mxs-mmc.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/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c index 4278a17..a09ba6e 100644 --- a/drivers/mmc/host/mxs-mmc.c +++ b/drivers/mmc/host/mxs-mmc.c @@ -639,6 +639,7 @@ static int mxs_mmc_probe(struct platform_device *pdev) if (!ssp->dmach) { dev_err(mmc_dev(host->mmc), "%s: failed to request dma\n", __func__); + ret = -ENODEV; goto out_clk_put; }