spi: spidev: Restore loading from Device Tree
authorPhil Elwell <phil@raspberrypi.com>
Mon, 29 Nov 2021 12:14:49 +0000 (12:14 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:14 +0000 (11:33 +0000)
As happens occasionally, an upstream change has once again prevented
spidev from being loaded via Device Tree. We now need "spidev" to be
included in the new spi_device_id list, otherwise although the
spidev driver gets loaded no /dev/spidev*.* entries will appear.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/spi/spidev.c

index 7ea5560..6fae551 100644 (file)
@@ -699,6 +699,7 @@ static const struct file_operations spidev_fops = {
 static struct class *spidev_class;
 
 static const struct spi_device_id spidev_spi_ids[] = {
+       { .name = "spidev" },
        { .name = "dh2228fv" },
        { .name = "ltc2488" },
        { .name = "sx1301" },