projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d1311b
)
spi: dw-pci: move info message at the end of probe
author
Andy Shevchenko
<
[email protected]
>
Fri, 29 Aug 2014 09:41:39 +0000
(12:41 +0300)
committer
Mark Brown
<
[email protected]
>
Mon, 1 Sep 2014 10:29:02 +0000
(11:29 +0100)
Let's print info message when controller is found and properly initialized.
Signed-off-by: Andy Shevchenko <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
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 3f3dc1226edf19aefad97630e2112287f419cabc..0ac86a58dd277b9bc04479d20ba55ad5dbc0ad16 100644
(file)
--- a/
drivers/spi/spi-dw-pci.c
+++ b/
drivers/spi/spi-dw-pci.c
@@
-40,9
+40,6
@@
static int spi_pci_probe(struct pci_dev *pdev,
int pci_bar = 0;
int ret;
- dev_info(&pdev->dev, "found PCI SPI controller(ID: %04x:%04x)\n",
- pdev->vendor, pdev->device);
-
ret = pcim_enable_device(pdev);
if (ret)
return ret;
@@
-83,6
+80,9
@@
static int spi_pci_probe(struct pci_dev *pdev,
/* PCI hook and SPI hook use the same drv data */
pci_set_drvdata(pdev, dwpci);
+ dev_info(&pdev->dev, "found PCI SPI controller(ID: %04x:%04x)\n",
+ pdev->vendor, pdev->device);
+
return 0;
}