diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2014-08-29 12:41:40 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-09-01 11:29:02 +0100 |
commit | ceb86de9d6dae58b66ae10e7533ff2d3d8c7bbae (patch) | |
tree | f6b655aeb8cb3663704ba963741b39fd8cb010a5 /drivers/spi/spi-dw-pci.c | |
parent | fcf0af445bfdb617993af352ee442471aeca1073 (diff) | |
download | linux-ceb86de9d6dae58b66ae10e7533ff2d3d8c7bbae.tar.bz2 |
spi: dw-pci: apply pci_bar and re-use pci_name
Nevertheless pci_bar is 0 let's explicitly use it when map IO regions. While
here, use pci_name instead of dev_name.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-dw-pci.c')
-rw-r--r-- | drivers/spi/spi-dw-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-dw-pci.c b/drivers/spi/spi-dw-pci.c index 0ac86a58dd27..e203d8fc0ce6 100644 --- a/drivers/spi/spi-dw-pci.c +++ b/drivers/spi/spi-dw-pci.c @@ -55,7 +55,7 @@ static int spi_pci_probe(struct pci_dev *pdev, /* Get basic io resource and map it */ dws->paddr = pci_resource_start(pdev, pci_bar); - ret = pcim_iomap_regions(pdev, 1, dev_name(&pdev->dev)); + ret = pcim_iomap_regions(pdev, 1 << pci_bar, pci_name(pdev)); if (ret) return ret; |