[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200715150632.409077-13-lee.jones@linaro.org>
Date: Wed, 15 Jul 2020 16:06:30 +0100
From: Lee Jones <lee.jones@...aro.org>
To: broonie@...nel.org
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-spi@...r.kernel.org, Lee Jones <lee.jones@...aro.org>,
Radu Pirea <radu_nicolae.pirea@....ro>,
Nicolas Ferre <nicolas.ferre@...rochip.com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Ludovic Desroches <ludovic.desroches@...rochip.com>
Subject: [PATCH 12/14] spi: spi-at91-usart: Make use of the defined 'struct of_device_id'
It's there so why not use it.
Fixes the following W=1 kernel build warning(s):
drivers/spi/spi-at91-usart.c:684:34: warning: ‘at91_usart_spi_dt_ids’ defined but not used [-Wunused-const-variable=]
684 | static const struct of_device_id at91_usart_spi_dt_ids[] = {
| ^~~~~~~~~~~~~~~~~~~~~
Cc: Radu Pirea <radu_nicolae.pirea@....ro>
Cc: Nicolas Ferre <nicolas.ferre@...rochip.com>
Cc: Alexandre Belloni <alexandre.belloni@...tlin.com>
Cc: Ludovic Desroches <ludovic.desroches@...rochip.com>
Signed-off-by: Lee Jones <lee.jones@...aro.org>
---
drivers/spi/spi-at91-usart.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/spi/spi-at91-usart.c b/drivers/spi/spi-at91-usart.c
index 88033422a42ae..d47a20be43ccd 100644
--- a/drivers/spi/spi-at91-usart.c
+++ b/drivers/spi/spi-at91-usart.c
@@ -692,6 +692,7 @@ static struct platform_driver at91_usart_spi_driver = {
.driver = {
.name = "at91_usart_spi",
.pm = &at91_usart_spi_pm_ops,
+ .of_match_table = at91_usart_spi_dt_ids,
},
.probe = at91_usart_spi_probe,
.remove = at91_usart_spi_remove,
--
2.25.1
Powered by blists - more mailing lists