Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: host: max3421-hcd: Add missing spi_device_id table

"maxim,max3421" DT compatible is missing its SPI device ID entry, not
allowing module autoloading and leading to the following message:
"SPI driver max3421-hcd has no spi_device_id for maxim,max3421"

Fix this by adding the spi_device_id table.

Signed-off-by: Alexander Stein <alexander.stein@mailbox.org>
Link: https://lore.kernel.org/r/20250128195114.56321-1-alexander.stein@mailbox.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alexander Stein and committed by
Greg Kroah-Hartman
41d5e380 7abbfe6e

+7
+7
drivers/usb/host/max3421-hcd.c
··· 1946 1946 usb_put_hcd(hcd); 1947 1947 } 1948 1948 1949 + static const struct spi_device_id max3421_spi_ids[] = { 1950 + { "max3421" }, 1951 + { }, 1952 + }; 1953 + MODULE_DEVICE_TABLE(spi, max3421_spi_ids); 1954 + 1949 1955 static const struct of_device_id max3421_of_match_table[] = { 1950 1956 { .compatible = "maxim,max3421", }, 1951 1957 {}, ··· 1961 1955 static struct spi_driver max3421_driver = { 1962 1956 .probe = max3421_probe, 1963 1957 .remove = max3421_remove, 1958 + .id_table = max3421_spi_ids, 1964 1959 .driver = { 1965 1960 .name = "max3421-hcd", 1966 1961 .of_match_table = max3421_of_match_table,