提交 225d85fe 编写于 作者: A Alan Cox 提交者: Chris Ball

mmc: sdhci: Allow the probe handler to override slots

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: NAlan Cox <alan@linux.intel.com>
Signed-off-by: NChris Ball <cjb@laptop.org>
上级 ed2a9785
...@@ -818,6 +818,8 @@ static int __devinit sdhci_pci_probe(struct pci_dev *pdev, ...@@ -818,6 +818,8 @@ static int __devinit sdhci_pci_probe(struct pci_dev *pdev,
goto free; goto free;
} }
slots = chip->num_slots; /* Quirk may have changed this */
for (i = 0;i < slots;i++) { for (i = 0;i < slots;i++) {
slot = sdhci_pci_probe_slot(pdev, chip, first_bar + i); slot = sdhci_pci_probe_slot(pdev, chip, first_bar + i);
if (IS_ERR(slot)) { if (IS_ERR(slot)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册