ODROID-C5: spi: Add compatible name "linux,spidev"
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I13f0a3d2ff898f0e8e3b504a38ea84666dcbf8d0
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index 922d778..cfe9ae1 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);