From 5f937343f468bb7eafe70969ef054b279b44b718 Mon Sep 17 00:00:00 2001 From: YoungSoo Shin Date: Tue, 15 Oct 2024 11:40:34 +0900 Subject: [PATCH] ODROID-C5: spi: Add compatible name "linux,spidev" Signed-off-by: YoungSoo Shin Change-Id: I13f0a3d2ff898f0e8e3b504a38ea84666dcbf8d0 --- drivers/spi/spidev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 922d778df064..cfe9ae1239fe 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -691,6 +691,9 @@ static const struct spi_device_id spidev_spi_ids[] = { { .name = "m53cpld" }, { .name = "spi-petra" }, { .name = "spi-authenta" }, +#if defined(CONFIG_ARCH_MESON_ODROID_COMMON) + { .name = "spidev" }, +#endif {}, }; MODULE_DEVICE_TABLE(spi, spidev_spi_ids); @@ -705,6 +708,9 @@ static const struct of_device_id spidev_dt_ids[] = { { .compatible = "menlo,m53cpld" }, { .compatible = "cisco,spi-petra" }, { .compatible = "micron,spi-authenta" }, +#if defined(CONFIG_ARCH_MESON_ODROID_COMMON) + { .compatible = "linux,spidev" }, +#endif {}, }; MODULE_DEVICE_TABLE(of, spidev_dt_ids);