projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcf0af4
)
spi: dw-pci: apply pci_bar and re-use pci_name
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Fri, 29 Aug 2014 09:41:40 +0000
(12:41 +0300)
committer
Mark Brown
<broonie@kernel.org>
Mon, 1 Sep 2014 10:29:02 +0000
(11:29 +0100)
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>
drivers/spi/spi-dw-pci.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-dw-pci.c
b/drivers/spi/spi-dw-pci.c
index
0ac86a5
..
e203d8f
100644
(file)
--- 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(p
dev));
if (ret)
return ret;