Skip to content

Commit

Permalink
mmc: sdhci: Allow the probe handler to override slots
Browse files Browse the repository at this point in the history
Currently we write it to the chip data, but if the probe handler overrides
it we ignore the new value and keep using our cached one. Fix this so that
a probe handler can adjust the slot count.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Alan Cox authored and Chris Ball committed Oct 23, 2010
1 parent ed2a978 commit 225d85f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mmc/host/sdhci-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,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)) {
Expand Down

0 comments on commit 225d85f

Please sign in to comment.