Currently, this driver anticipates that pci-bus number fixed "2" is used. So, if the device is used on pci-bus except 2, this driver doesn't work. This patch fixes the issue.
commit ee2ece5261a639b89f194d141444b03b4c923179 Kernel 3.2 3.3 Cc: stable@vger.kernel.org Signed-off-by: Tomoya MORINAGA <tomoya.r...@gmail.com> Signed-off-by: Grant Likely <grant.lik...@secretlab.ca> --- drivers/spi/spi-topcliff-pch.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi-topcliff-pch.c b/drivers/spi/spi-topcliff-pch.c index 54b9d2e..3238ec8 100644 --- a/drivers/spi/spi-topcliff-pch.c +++ b/drivers/spi/spi-topcliff-pch.c @@ -924,7 +924,8 @@ static void pch_spi_request_dma(struct pch_spi_data *data, int bpw) dma_cap_set(DMA_SLAVE, mask); /* Get DMA's dev information */ - dma_dev = pci_get_bus_and_slot(2, PCI_DEVFN(12, 0)); + dma_dev = pci_get_bus_and_slot(data->board_dat->pdev->bus->number, + PCI_DEVFN(12, 0)); /* Set Tx DMA */ param = &dma->param_tx; -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html