[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250128195114.56321-1-alexander.stein@mailbox.org>
Date: Tue, 28 Jan 2025 20:51:13 +0100
From: Alexander Stein <alexander.stein@...lbox.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Mark Tomlinson <mark.tomlinson@...iedtelesis.co.nz>
Cc: Alexander Stein <alexander.stein@...lbox.org>,
linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/1] 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@...lbox.org>
---
drivers/usb/host/max3421-hcd.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/usb/host/max3421-hcd.c b/drivers/usb/host/max3421-hcd.c
index 0881fdd1823e..dcf31a592f5d 100644
--- a/drivers/usb/host/max3421-hcd.c
+++ b/drivers/usb/host/max3421-hcd.c
@@ -1946,6 +1946,12 @@ max3421_remove(struct spi_device *spi)
usb_put_hcd(hcd);
}
+static const struct spi_device_id max3421_spi_ids[] = {
+ { "max3421" },
+ { },
+};
+MODULE_DEVICE_TABLE(spi, max3421_spi_ids);
+
static const struct of_device_id max3421_of_match_table[] = {
{ .compatible = "maxim,max3421", },
{},
@@ -1955,6 +1961,7 @@ MODULE_DEVICE_TABLE(of, max3421_of_match_table);
static struct spi_driver max3421_driver = {
.probe = max3421_probe,
.remove = max3421_remove,
+ .id_table = max3421_spi_ids,
.driver = {
.name = "max3421-hcd",
.of_match_table = max3421_of_match_table,
--
2.48.1
Powered by blists - more mailing lists