Skip to content

Commit aaafe88

Browse files
sjoerdsimonsgclement
authored andcommitted
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>
1 parent e7830f5 commit aaafe88

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/bus/moxtet.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,12 @@ static void moxtet_remove(struct spi_device *spi)
830830
mutex_destroy(&moxtet->lock);
831831
}
832832

833+
static const struct spi_device_id moxtet_spi_ids[] = {
834+
{ "moxtet" },
835+
{ },
836+
};
837+
MODULE_DEVICE_TABLE(spi, moxtet_spi_ids);
838+
833839
static const struct of_device_id moxtet_dt_ids[] = {
834840
{ .compatible = "cznic,moxtet" },
835841
{},
@@ -841,6 +847,7 @@ static struct spi_driver moxtet_spi_driver = {
841847
.name = "moxtet",
842848
.of_match_table = moxtet_dt_ids,
843849
},
850+
.id_table = moxtet_spi_ids,
844851
.probe = moxtet_probe,
845852
.remove = moxtet_remove,
846853
};

0 commit comments

Comments
 (0)