Browse Source

spi: dw-pci: move info message at the end of probe

Let's print info message when controller is found and properly initialized.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Andy Shevchenko 11 years ago
parent
commit
fcf0af445b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      drivers/spi/spi-dw-pci.c

+ 3 - 3
drivers/spi/spi-dw-pci.c

@@ -40,9 +40,6 @@ static int spi_pci_probe(struct pci_dev *pdev,
 	int pci_bar = 0;
 	int pci_bar = 0;
 	int ret;
 	int ret;
 
 
-	dev_info(&pdev->dev, "found PCI SPI controller(ID: %04x:%04x)\n",
-		pdev->vendor, pdev->device);
-
 	ret = pcim_enable_device(pdev);
 	ret = pcim_enable_device(pdev);
 	if (ret)
 	if (ret)
 		return 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 hook and SPI hook use the same drv data */
 	pci_set_drvdata(pdev, dwpci);
 	pci_set_drvdata(pdev, dwpci);
 
 
+	dev_info(&pdev->dev, "found PCI SPI controller(ID: %04x:%04x)\n",
+		pdev->vendor, pdev->device);
+
 	return 0;
 	return 0;
 }
 }