aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/gehc-achc.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2021-09-23 20:46:09 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-05 15:47:18 +0200
commita3e16937319aea285c64ab5bf8464470afac8dd3 (patch)
tree3ce4bbb5308d555c7f0288bdb356e110af5acd00 /drivers/misc/gehc-achc.c
parentad2b502bc5e65632104ef89372abd6691de8851c (diff)
downloadlinux-a3e16937319aea285c64ab5bf8464470afac8dd3.tar.gz
misc: gehc: Add SPI 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 ID table entry for the device name part of the compatible - currently only the full compatible is listed which isn't very idiomatic and won't match the modalias that is generated. Fixes: 96c8395e2166 ("spi: Revert modalias changes") Cc: stable <stable@vger.kernel.org> Tested-by: Martyn Welch <martyn.welch@collabora.com> Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20210923194609.52647-1-broonie@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/gehc-achc.c')
-rw-r--r--drivers/misc/gehc-achc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/gehc-achc.c b/drivers/misc/gehc-achc.c
index 02f33bc60c56e4..4c9c5394da6fa6 100644
--- a/drivers/misc/gehc-achc.c
+++ b/drivers/misc/gehc-achc.c
@@ -539,6 +539,7 @@ static int gehc_achc_probe(struct spi_device *spi)
static const struct spi_device_id gehc_achc_id[] = {
{ "ge,achc", 0 },
+ { "achc", 0 },
{ }
};
MODULE_DEVICE_TABLE(spi, gehc_achc_id);