[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-spi
Subject: [PATCH v2 1/5] spi: dw-pci: move info message at the end of probe
From: Andy Shevchenko <andriy.shevchenko () linux ! intel ! com>
Date: 2014-08-28 15:07:22
Message-ID: 1409238446-19436-2-git-send-email-andriy.shevchenko () linux ! intel ! com
[Download RAW message or body]
Let's print info message when controller is found and properly initialized.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/spi/spi-dw-pci.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/spi/spi-dw-pci.c b/drivers/spi/spi-dw-pci.c
index 5328672..9a74926 100644
--- a/drivers/spi/spi-dw-pci.c
+++ b/drivers/spi/spi-dw-pci.c
@@ -39,9 +39,6 @@ static int spi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
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;
@@ -84,6 +81,9 @@ static int spi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
/* 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;
}
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic