From patchwork Mon Sep 13 15:02:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Cox X-Patchwork-Id: 178392 Return-path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on void.printf.net X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.9 tests=RCVD_IN_DNSWL_LOW autolearn=disabled version=3.2.5 Envelope-to: chris@printf.net Delivery-date: Mon, 13 Sep 2010 16:47:46 +0100 Received: from lists.laptop.org ([18.85.2.145] helo=mail.laptop.org) by void.printf.net with esmtp (Exim 4.69) (envelope-from ) id 1OvBFy-0000EI-Ir for chris@printf.net; Mon, 13 Sep 2010 16:47:46 +0100 Received: by mail.laptop.org (Postfix) id DE945241CB; Mon, 13 Sep 2010 11:47:25 -0400 (EDT) Delivered-To: cjb@laptop.org Received: from spam.laptop.org (spam.laptop.org [18.85.46.23]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.laptop.org (Postfix) with ESMTPS id 86957241C9 for ; Mon, 13 Sep 2010 11:47:25 -0400 (EDT) X-ASG-Debug-ID: 1284392861-0b74bb040001-zHW3sV Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by spam.laptop.org with ESMTP id VBRhJLT46AwyEm5X for ; Mon, 13 Sep 2010 11:47:41 -0400 (EDT) X-Barracuda-Envelope-From: linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752686Ab0IMPrl (ORCPT ); Mon, 13 Sep 2010 11:47:41 -0400 Received: from mga11.intel.com ([192.55.52.93]:11959 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752611Ab0IMPrl (ORCPT ); Mon, 13 Sep 2010 11:47:41 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 13 Sep 2010 08:47:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.56,359,1280732400"; d="scan'208";a="837207236" Received: from unknown (HELO localhost.localdomain) ([10.255.14.44]) by fmsmga001.fm.intel.com with ESMTP; 13 Sep 2010 08:46:56 -0700 From: Alan Cox X-ASG-Orig-Subj: [PATCH 2/4] sdhci: Allow the probe handler to override slots Subject: [PATCH 2/4] sdhci: Allow the probe handler to override slots To: linux-mmc@vger.kernel.org, cjb@laptop.org Date: Mon, 13 Sep 2010 16:02:27 +0100 Message-ID: <20100913150217.23167.88864.stgit@localhost.localdomain> In-Reply-To: <20100913145805.23167.35463.stgit@localhost.localdomain> References: <20100913145805.23167.35463.stgit@localhost.localdomain> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Barracuda-Connect: vger.kernel.org[209.132.180.67] X-Barracuda-Start-Time: 1284392861 X-Barracuda-URL: http://18.85.46.23:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at laptop.org X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.5 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.40754 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c index 168b837..24f9f6a 100644 --- a/drivers/mmc/host/sdhci-pci.c +++ b/drivers/mmc/host/sdhci-pci.c @@ -874,6 +874,8 @@ static int __devinit sdhci_pci_probe(struct pci_dev *pdev, goto free; } + slots = chip->num_slots; /* Quirk may have changed this */ + for (i = 0;i < slots;i++) { slot = sdhci_pci_probe_slot(pdev, chip, first_bar + i); if (IS_ERR(slot)) {