Skip to content

Commit c894c26

Browse files
Lee Jonesbroonie
authored andcommitted
spi: spi-at91-usart: Remove unused OF table 'struct of_device_id'
The only way this driver can be probed by MFD via its parent device. No other reference to 'microchip,at91sam9g45-usart-spi' exists in the kernel. 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[] = { | ^~~~~~~~~~~~~~~~~~~~~ Suggested-by: Alexandre Belloni <[email protected]> Signed-off-by: Lee Jones <[email protected]> Acked-by: Alexandre Belloni <[email protected]> Cc: Radu Pirea <[email protected]> Cc: Nicolas Ferre <[email protected]> Cc: Ludovic Desroches <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent decf532 commit c894c26

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/spi/spi-at91-usart.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -681,13 +681,6 @@ static const struct dev_pm_ops at91_usart_spi_pm_ops = {
681681
at91_usart_spi_runtime_resume, NULL)
682682
};
683683

684-
static const struct of_device_id at91_usart_spi_dt_ids[] = {
685-
{ .compatible = "microchip,at91sam9g45-usart-spi"},
686-
{ /* sentinel */}
687-
};
688-
689-
MODULE_DEVICE_TABLE(of, at91_usart_spi_dt_ids);
690-
691684
static struct platform_driver at91_usart_spi_driver = {
692685
.driver = {
693686
.name = "at91_usart_spi",

0 commit comments

Comments
 (0)