Skip to content

Commit 9ab1f42

Browse files
baruchsiachNicolas Ferre
authored andcommitted
spi: atmel: print version only after successful registration
Don't print the version at the beginning of atmel_spi_probe(). This avoids spamming the log whenever a deferred probe runs. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 8e90859 commit 9ab1f42

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/spi/spi-atmel.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,6 @@ static void atmel_get_caps(struct atmel_spi *as)
14221422
unsigned int version;
14231423

14241424
version = atmel_get_version(as);
1425-
dev_info(&as->pdev->dev, "version: 0x%x\n", version);
14261425

14271426
as->caps.is_spi2 = version > 0x121;
14281427
as->caps.has_wdrbt = version >= 0x210;
@@ -1602,8 +1601,9 @@ static int atmel_spi_probe(struct platform_device *pdev)
16021601
goto out_free_dma;
16031602

16041603
/* go! */
1605-
dev_info(&pdev->dev, "Atmel SPI Controller at 0x%08lx (irq %d)\n",
1606-
(unsigned long)regs->start, irq);
1604+
dev_info(&pdev->dev, "Atmel SPI Controller version 0x%x at 0x%08lx (irq %d)\n",
1605+
atmel_get_version(as), (unsigned long)regs->start,
1606+
irq);
16071607

16081608
return 0;
16091609

0 commit comments

Comments
 (0)