From 935783bcc312350e51177bb325a9118472478b7c Mon Sep 17 00:00:00 2001 From: Stefan Christ Date: Tue, 11 Jan 2022 07:32:00 +0100 Subject: [PATCH] spidev: avoid warning when used directly in device tree Avoid warning [ 2.991522] spidev spi2.2: buggy DT: spidev listed directly in DT when using spidev in device tree. See https://github.com/raspberrypi/linux/issues/1054 Signed-off-by: Stefan Christ Signed-off-by: Stefan Riedmueller Signed-off-by: Jan Remmet Signed-off-by: Yunus Bas Signed-off-by: Andrej Picej Reviewed-by: Yunus Bas --- drivers/spi/spidev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 1bd73e322b7bb..75f9c4bc6d31a 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -696,6 +696,8 @@ static const struct of_device_id spidev_dt_ids[] = { { .compatible = "menlo,m53cpld" }, { .compatible = "cisco,spi-petra" }, { .compatible = "micron,spi-authenta" }, + /* avoids warning "buggy DT: spidev listed directly in DT" */ + { .compatible = "spidev" }, {}, }; MODULE_DEVICE_TABLE(of, spidev_dt_ids);