From patchwork Thu Aug 8 10:44:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 2841013 Return-Path: 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 460E6BF535 for ; Thu, 8 Aug 2013 10:45:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 682722030B for ; Thu, 8 Aug 2013 10:45:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 62EEC20375 for ; Thu, 8 Aug 2013 10:45:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965117Ab3HHKpk (ORCPT ); Thu, 8 Aug 2013 06:45:40 -0400 Received: from mga02.intel.com ([134.134.136.20]:46202 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965111Ab3HHKpj (ORCPT ); Thu, 8 Aug 2013 06:45:39 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 08 Aug 2013 03:45:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.89,838,1367996400"; d="scan'208";a="377993440" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.173]) by fmsmga001.fm.intel.com with ESMTP; 08 Aug 2013 03:45:09 -0700 Received: from andy by smile with local (Exim 4.80) (envelope-from ) id 1V7NiF-0002lO-B4; Thu, 08 Aug 2013 13:44:59 +0300 From: Andy Shevchenko To: linux-mmc@vger.kernel.org, Chris Ball , Prabu Thangamuthu , Seungwon Jeon Cc: Andy Shevchenko Subject: [PATCH 1/2] dw_mmc-pci: get resources from a proper BAR Date: Thu, 8 Aug 2013 13:44:57 +0300 Message-Id: <1375958698-10569-1-git-send-email-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 1.8.4.rc1 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, 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 There is a typo when the mapped space is from BAR 2, but BAR 0 is used instead. This patch fixes the typo. Signed-off-by: Andy Shevchenko Tested-by: Prabu Thangamuthu Acked-by: Seungwon Jeon --- drivers/mmc/host/dw_mmc-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/dw_mmc-pci.c b/drivers/mmc/host/dw_mmc-pci.c index b456b0c..7d148d6 100644 --- a/drivers/mmc/host/dw_mmc-pci.c +++ b/drivers/mmc/host/dw_mmc-pci.c @@ -59,7 +59,7 @@ static int dw_mci_pci_probe(struct pci_dev *pdev, if (ret) return ret; - host->regs = pcim_iomap_table(pdev)[0]; + host->regs = pcim_iomap_table(pdev)[PCI_BAR_NO]; ret = dw_mci_probe(host); if (ret)