pch_uart: Set PCIe bus number using probe parameter
commit 6c4b47d243 upstream.
Currently, PCIe bus number is set as fixed value "2".
However, PCIe bus number is not always "2".
This patch sets bus number using probe() parameter.
Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8f05e5d508
commit
9e2c07dbbb
1 changed files with 2 additions and 1 deletions
|
|
@ -602,7 +602,8 @@ static void pch_request_dma(struct uart_port *port)
|
|||
dma_cap_zero(mask);
|
||||
dma_cap_set(DMA_SLAVE, mask);
|
||||
|
||||
dma_dev = pci_get_bus_and_slot(2, PCI_DEVFN(0xa, 0)); /* Get DMA's dev
|
||||
dma_dev = pci_get_bus_and_slot(priv->pdev->bus->number,
|
||||
PCI_DEVFN(0xa, 0)); /* Get DMA's dev
|
||||
information */
|
||||
/* Set Tx DMA */
|
||||
param = &priv->param_tx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue