]> git.baikalelectronics.ru Git - kernel.git/commit
pch_uart: don't hardcode PCI slot to get DMA device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 30 Jul 2014 15:59:52 +0000 (18:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Aug 2014 23:04:21 +0000 (16:04 -0700)
commitf1006a3550cbd3f74ded5f05db89fed7502af6cc
treea1e03234554758bf9aafd16679b23845d86526bd
parent38844ffa6a9974fd1f86dc311c89f8bc0f77b9ec
pch_uart: don't hardcode PCI slot to get DMA device

The DMA is a function 0 of the multifunction device where SPI host is attached.
Thus, we may avoid to hardcode PCI slot number.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pch_uart.c