diff options
author | Baruch Siach <baruch@tkos.co.il> | 2017-05-30 08:33:30 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-06-06 20:01:45 +0100 |
commit | 6aba9c65649e5ef137bce7a958c0749f13af88a1 (patch) | |
tree | 90e45b98bcbd62c0e3abb2cda6dbf0420c97a3fe | |
parent | 2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff) | |
download | op-kernel-dev-6aba9c65649e5ef137bce7a958c0749f13af88a1.zip op-kernel-dev-6aba9c65649e5ef137bce7a958c0749f13af88a1.tar.gz |
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>
-rw-r--r-- | drivers/spi/spi-atmel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index 1eb83c9..4e5e51f 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c @@ -1422,7 +1422,6 @@ static void atmel_get_caps(struct atmel_spi *as) unsigned int version; version = atmel_get_version(as); - dev_info(&as->pdev->dev, "version: 0x%x\n", version); as->caps.is_spi2 = version > 0x121; as->caps.has_wdrbt = version >= 0x210; @@ -1609,8 +1608,9 @@ static int atmel_spi_probe(struct platform_device *pdev) goto out_free_dma; /* go! */ - dev_info(&pdev->dev, "Atmel SPI Controller at 0x%08lx (irq %d)\n", - (unsigned long)regs->start, irq); + dev_info(&pdev->dev, "Atmel SPI Controller version 0x%x at 0x%08lx (irq %d)\n", + atmel_get_version(as), (unsigned long)regs->start, + irq); return 0; |