diff options
author | Tomoya MORINAGA <tomoya.rohm@gmail.com> | 2011-12-09 13:11:42 +0900 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-05-20 22:56:43 +0100 |
commit | 046f0433b57a5a9ef7890818646d2af1cc8b7418 (patch) | |
tree | d665b60e153245627b94203902866de0e2aad527 /drivers/spi | |
parent | 347e3c6d3ed876bb5c36189265be02e952679e09 (diff) | |
download | kernel-common-046f0433b57a5a9ef7890818646d2af1cc8b7418.tar.gz kernel-common-046f0433b57a5a9ef7890818646d2af1cc8b7418.tar.bz2 kernel-common-046f0433b57a5a9ef7890818646d2af1cc8b7418.zip |
spi-topcliff-pch: Modify pci-bus number dynamically to get DMA device info
commit ee2ece5261a639b89f194d141444b03b4c923179 upstream.
Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | 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 54b9d2ef590e..3238ec8e0f5d 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; |