summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-atmel.c
diff options
context:
space:
mode:
authorNicolas Ferre <nicolas.ferre@atmel.com>2016-11-24 06:24:57 -0500
committerMark Brown <broonie@kernel.org>2016-11-25 08:07:08 -0500
commitce24a513fb142e855b4aa77f91334c2f203c0d99 (patch)
tree404c25eab4b3184e0037f50c38748d5fae6641ab /drivers/spi/spi-atmel.c
parentb52b3484eec593a4fe75a68e57f0ade52b55ed8f (diff)
spi: atmel: trivial: move info banner to latest probe action
The info banner is here to tell that everything went well, so place it at the very end of the probe function. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-atmel.c')
-rw-r--r--drivers/spi/spi-atmel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c
index b2931493cab2..a9ae1836e1e2 100644
--- a/drivers/spi/spi-atmel.c
+++ b/drivers/spi/spi-atmel.c
@@ -1654,10 +1654,6 @@ static int atmel_spi_probe(struct platform_device *pdev)
1654 spi_writel(as, CR, SPI_BIT(FIFOEN)); 1654 spi_writel(as, CR, SPI_BIT(FIFOEN));
1655 } 1655 }
1656 1656
1657 /* go! */
1658 dev_info(&pdev->dev, "Atmel SPI Controller at 0x%08lx (irq %d)\n",
1659 (unsigned long)regs->start, irq);
1660
1661 pm_runtime_set_autosuspend_delay(&pdev->dev, AUTOSUSPEND_TIMEOUT); 1657 pm_runtime_set_autosuspend_delay(&pdev->dev, AUTOSUSPEND_TIMEOUT);
1662 pm_runtime_use_autosuspend(&pdev->dev); 1658 pm_runtime_use_autosuspend(&pdev->dev);
1663 pm_runtime_set_active(&pdev->dev); 1659 pm_runtime_set_active(&pdev->dev);
@@ -1667,6 +1663,10 @@ static int atmel_spi_probe(struct platform_device *pdev)
1667 if (ret) 1663 if (ret)
1668 goto out_free_dma; 1664 goto out_free_dma;
1669 1665
1666 /* go! */
1667 dev_info(&pdev->dev, "Atmel SPI Controller at 0x%08lx (irq %d)\n",
1668 (unsigned long)regs->start, irq);
1669
1670 return 0; 1670 return 0;
1671 1671
1672out_free_dma: 1672out_free_dma: