diff options
author | Mark Brown <broonie@kernel.org> | 2021-09-24 16:33:45 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-11-05 15:40:25 +0100 |
commit | 4ea673e87e50684249223103ccdfef2c0ea83321 (patch) | |
tree | 364f95a5c05274d02dfffb70e93e28a77de83576 /drivers/mfd/altera-a10sr.c | |
parent | mfd: exynos-lpass: Describe driver in KConfig (diff) | |
download | linux-4ea673e87e50684249223103ccdfef2c0ea83321.tar.xz linux-4ea673e87e50684249223103ccdfef2c0ea83321.zip |
mfd: altr_a10sr: Add SPI device ID table
Currently autoloading for SPI devices does not use the DT ID table, it uses
SPI modalises. Supporting OF modalises is going to be difficult if not
impractical, an attempt was made but has been reverted, so ensure that
module autoloading works for this driver by adding a SPI device ID table.
Fixes: 96c8395e2166 ("spi: Revert modalias changes")
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210924143347.14721-2-broonie@kernel.org
Diffstat (limited to 'drivers/mfd/altera-a10sr.c')
-rw-r--r-- | drivers/mfd/altera-a10sr.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mfd/altera-a10sr.c b/drivers/mfd/altera-a10sr.c index a3bf64f9afd1..6d04fdd09ca2 100644 --- a/drivers/mfd/altera-a10sr.c +++ b/drivers/mfd/altera-a10sr.c @@ -150,6 +150,13 @@ static const struct of_device_id altr_a10sr_spi_of_match[] = { { .compatible = "altr,a10sr" }, { }, }; +MODULE_DEVICE_TABLE(of, altr_a10sr_spi_of_match); + +static const struct spi_device_id altr_a10sr_spi_ids[] = { + { .name = "a10sr" }, + { }, +}; +MODULE_DEVICE_TABLE(spi, altr_a10sr_spi_ids); static struct spi_driver altr_a10sr_spi_driver = { .probe = altr_a10sr_spi_probe, @@ -157,5 +164,6 @@ static struct spi_driver altr_a10sr_spi_driver = { .name = "altr_a10sr", .of_match_table = of_match_ptr(altr_a10sr_spi_of_match), }, + .id_table = altr_a10sr_spi_ids, }; builtin_driver(altr_a10sr_spi_driver, spi_register_driver) |