Skip to content

Commit a3e1693

Browse files
brooniegregkh
authored andcommitted
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: 96c8395 ("spi: Revert modalias changes") Cc: stable <[email protected]> Tested-by: Martyn Welch <[email protected]> Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ad2b502 commit a3e1693

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/misc/gehc-achc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ static int gehc_achc_probe(struct spi_device *spi)
539539

540540
static const struct spi_device_id gehc_achc_id[] = {
541541
{ "ge,achc", 0 },
542+
{ "achc", 0 },
542543
{ }
543544
};
544545
MODULE_DEVICE_TABLE(spi, gehc_achc_id);

0 commit comments

Comments
 (0)