Message ID | 1399893256-7071-2-git-send-email-jh80.chung@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mmc-owner@kernel.org> X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 661D6BFF02 for <patchwork-linux-mmc@patchwork.kernel.org>; Mon, 12 May 2014 11:14:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7997E202B4 for <patchwork-linux-mmc@patchwork.kernel.org>; Mon, 12 May 2014 11:14:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4F7852026C for <patchwork-linux-mmc@patchwork.kernel.org>; Mon, 12 May 2014 11:14:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754705AbaELLO1 (ORCPT <rfc822;patchwork-linux-mmc@patchwork.kernel.org>); Mon, 12 May 2014 07:14:27 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:25855 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754647AbaELLO1 (ORCPT <rfc822; linux-mmc@vger.kernel.org>); Mon, 12 May 2014 07:14:27 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N5G00B3VKK1U9E0@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Mon, 12 May 2014 20:14:25 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.112]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 90.5E.14563.11DA0735; Mon, 12 May 2014 20:14:25 +0900 (KST) X-AuditID: cbfee68e-b7fd86d0000038e3-9e-5370ad11cacc Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id DB.70.27725.11DA0735; Mon, 12 May 2014 20:14:25 +0900 (KST) Received: from localhost.localdomain ([10.252.81.186]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N5G00FNEKJVNB30@mmp2.samsung.com>; Mon, 12 May 2014 20:14:25 +0900 (KST) From: Jaehoon Chung <jh80.chung@samsung.com> To: linux-mmc@vger.kernel.org Cc: chris@printf.net, ulf.hansson@linaro.org, tgih.jun@samsung.com, zhangfei.gao@linaro.org, dinguyen@altera.com, Jaehoon Chung <jh80.chung@samsung.com> Subject: [PATCH 1/5] mmc: dw_mmc: fix the wrong condition checking Date: Mon, 12 May 2014 20:14:12 +0900 Message-id: <1399893256-7071-2-git-send-email-jh80.chung@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1399893256-7071-1-git-send-email-jh80.chung@samsung.com> References: <1399893256-7071-1-git-send-email-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCLMWRmVeSWpSXmKPExsWyRsSkQFdwbUGwwdKdehYTLm9ntDh+aTGz xY1fbawWR/73M1p8uH+R2eL42nCLm2susDuwe7TuncDmcefaHjaPG68WMnn0bVnF6PF5k1wA axSXTUpqTmZZapG+XQJXxrXG2SwFd1gq/n19ztbA+Iq5i5GTQ0LAROL50hZWCFtM4sK99Wxd jFwcQgJLGSVWfVnFCFN0/9cuNhBbSGA6o8SVN9YQRW1MEmtW3gZLsAnoSGz/dpwJxBYRkJX4 +ecC2CRmgTmMEj9m9QGt4+AQFnCS2L60GKSGRUBV4uXaJ+wgNq+Aq8S8eU0sICUSAgoScybZ gIQ5Bdwk5s+cyQqx11Xixd/9LCAjJQTmsUuc+biIEWKOgMS3yYegemUlNh2AekxS4uCKGywT GIUXMDKsYhRNL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 78dr2aVvWtc+4Oifqbf8lGtovc+h6+2SWmZrli9e+GC+7e7EZwUaM/L7ewJOTnx6akPhVx9/ r421KTKVfu/mCKm88vIL+cpQuXXuzcsasTs1qxOv/Bfed1iDW4mlOCPRUIu5qDgRALyrFYPk AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-mmc.vger.kernel.org> X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 |
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index d409912..7d4d9ea 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -2312,7 +2312,7 @@ int dw_mci_probe(struct dw_mci *host) } } - if (host->pdata->num_slots > 1) { + if (host->pdata->num_slots < 1) { dev_err(host->dev, "Platform data must supply num_slots.\n"); return -ENODEV;
num-slot cab be greater than 1. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> --- drivers/mmc/host/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)