summaryrefslogtreecommitdiffstats
path: root/drivers/bus
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@collabora.com>2023-11-28 22:35:05 +0100
committerGregory CLEMENT <gregory.clement@bootlin.com>2023-12-15 15:44:11 +0100
commitaaafe88d5500ba18b33be72458439367ef878788 (patch)
tree1e3bd09acad003c85890936fbfd197a048d78981 /drivers/bus
parente7830f5a83e96d8cb8efc0412902a03008f8fbe3 (diff)
downloadlinux-stable-aaafe88d5500ba18b33be72458439367ef878788.tar.gz
linux-stable-aaafe88d5500ba18b33be72458439367ef878788.tar.bz2
linux-stable-aaafe88d5500ba18b33be72458439367ef878788.zip
bus: moxtet: Add spi device table
The moxtet module fails to auto-load on. Add a SPI id table to allow it to do so. Signed-off-by: Sjoerd Simons <sjoerd@collabora.com> Cc: <stable@vger.kernel.org> Reviewed-by: Marek BehĂșn <kabel@kernel.org> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Diffstat (limited to 'drivers/bus')
-rw-r--r--drivers/bus/moxtet.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/bus/moxtet.c b/drivers/bus/moxtet.c
index 48c18f95660a..e384fbc6c1d9 100644
--- a/drivers/bus/moxtet.c
+++ b/drivers/bus/moxtet.c
@@ -830,6 +830,12 @@ static void moxtet_remove(struct spi_device *spi)
mutex_destroy(&moxtet->lock);
}
+static const struct spi_device_id moxtet_spi_ids[] = {
+ { "moxtet" },
+ { },
+};
+MODULE_DEVICE_TABLE(spi, moxtet_spi_ids);
+
static const struct of_device_id moxtet_dt_ids[] = {
{ .compatible = "cznic,moxtet" },
{},
@@ -841,6 +847,7 @@ static struct spi_driver moxtet_spi_driver = {
.name = "moxtet",
.of_match_table = moxtet_dt_ids,
},
+ .id_table = moxtet_spi_ids,
.probe = moxtet_probe,
.remove = moxtet_remove,
};