From patchwork Wed Nov 19 13:16:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 5337381 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B7E9E9F2ED for ; Wed, 19 Nov 2014 13:32:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 088E1201CD for ; Wed, 19 Nov 2014 13:32:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 35F4820115 for ; Wed, 19 Nov 2014 13:32:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754413AbaKSNcv (ORCPT ); Wed, 19 Nov 2014 08:32:51 -0500 Received: from mail-bl2on0109.outbound.protection.outlook.com ([65.55.169.109]:5427 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754066AbaKSNcv (ORCPT ); Wed, 19 Nov 2014 08:32:51 -0500 X-Greylist: delayed 937 seconds by postgrey-1.27 at vger.kernel.org; Wed, 19 Nov 2014 08:32:50 EST Received: from BY2PR03CA072.namprd03.prod.outlook.com (10.141.249.45) by BL2PR03MB241.namprd03.prod.outlook.com (10.255.231.15) with Microsoft SMTP Server (TLS) id 15.1.26.15; Wed, 19 Nov 2014 13:17:11 +0000 Received: from BY2FFO11FD024.protection.gbl (2a01:111:f400:7c0c::189) by BY2PR03CA072.outlook.office365.com (2a01:111:e400:2c5d::45) with Microsoft SMTP Server (TLS) id 15.1.16.15 via Frontend Transport; Wed, 19 Nov 2014 13:17:11 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD024.mail.protection.outlook.com (10.1.15.213) with Microsoft SMTP Server (TLS) id 15.1.6.13 via Frontend Transport; Wed, 19 Nov 2014 13:17:10 +0000 Received: from fabio-Latitude-E6410.am.freescale.net ([10.29.244.75]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id sAJDH6Sj006141; Wed, 19 Nov 2014 06:17:09 -0700 From: Fabio Estevam To: CC: , , Fabio Estevam Subject: [PATCH 2/3] mmc: mxs-mmc: Propagate the real error Date: Wed, 19 Nov 2014 11:16:58 -0200 Message-ID: <1416403019-6353-2-git-send-email-fabio.estevam@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1416403019-6353-1-git-send-email-fabio.estevam@freescale.com> References: <1416403019-6353-1-git-send-email-fabio.estevam@freescale.com> X-EOPAttributedMessage: 0 Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=Fabio.Estevam@freescale.com; X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(199003)(189002)(21056001)(87936001)(44976005)(76176999)(50986999)(20776003)(47776003)(48376002)(2351001)(50226001)(93916002)(4396001)(229853001)(64706001)(102836001)(107046002)(106466001)(46102003)(104166001)(62966003)(77156002)(86362001)(97736003)(50466002)(105606002)(88136002)(95666004)(31966008)(84676001)(120916001)(85426001)(68736004)(19580395003)(36756003)(6806004)(19580405001)(99396003)(92726001)(89996001)(33646002)(110136001)(87286001)(92566001)(104016003); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR03MB241; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB241; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB241; X-Forefront-PRVS: 04004D94E2 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB241; X-OriginatorOrg: freescale.com Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If platform_get_irq() fails, it is better to propagate the real error value instead of a 'fake' one. Signed-off-by: Fabio Estevam --- drivers/mmc/host/mxs-mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c index 0d30730..f2c49e0 100644 --- a/drivers/mmc/host/mxs-mmc.c +++ b/drivers/mmc/host/mxs-mmc.c @@ -583,7 +583,7 @@ static int mxs_mmc_probe(struct platform_device *pdev) irq_err = platform_get_irq(pdev, 0); if (irq_err < 0) - return -EINVAL; + return irq_err; mmc = mmc_alloc_host(sizeof(struct mxs_mmc_host), &pdev->dev); if (!mmc)