projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00ffc13
)
spi-topcliff-pch: Modify pci-bus number dynamically to get DMA device info
author
Tomoya MORINAGA
<tomoya.rohm@gmail.com>
Fri, 9 Dec 2011 04:11:42 +0000
(13:11 +0900)
committer
Grant Likely
<grant.likely@secretlab.ca>
Fri, 9 Mar 2012 23:45:31 +0000
(16:45 -0700)
Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-topcliff-pch.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-topcliff-pch.c
b/drivers/spi/spi-topcliff-pch.c
index 4a5fafb8d574e0e8a5c9a3168bbd9d7c0bb1b1a0..4b32fd7d0570cedcee595bfa28ff24099a152eae 100644
(file)
--- 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;