Skip to content

Commit 936528d

Browse files
Nicolas Ferrealexandrebelloni
authored andcommitted
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>
1 parent 869e5eb commit 936528d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/spi/spi-atmel.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,10 +1658,6 @@ static int atmel_spi_probe(struct platform_device *pdev)
16581658
spi_writel(as, CR, SPI_BIT(FIFOEN));
16591659
}
16601660

1661-
/* go! */
1662-
dev_info(&pdev->dev, "Atmel SPI Controller at 0x%08lx (irq %d)\n",
1663-
(unsigned long)regs->start, irq);
1664-
16651661
pm_runtime_set_autosuspend_delay(&pdev->dev, AUTOSUSPEND_TIMEOUT);
16661662
pm_runtime_use_autosuspend(&pdev->dev);
16671663
pm_runtime_set_active(&pdev->dev);
@@ -1671,6 +1667,10 @@ static int atmel_spi_probe(struct platform_device *pdev)
16711667
if (ret)
16721668
goto out_free_dma;
16731669

1670+
/* go! */
1671+
dev_info(&pdev->dev, "Atmel SPI Controller at 0x%08lx (irq %d)\n",
1672+
(unsigned long)regs->start, irq);
1673+
16741674
return 0;
16751675

16761676
out_free_dma:

0 commit comments

Comments
 (0)