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)
commit8368d6a2b73900507ad7632b8057532d0c2ee07f
treea1e03234554758bf9aafd16679b23845d86526bd
parentc62fd1d9f094b1a97674374d09869df05cdc1025
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