From: Mark Brown Date: Wed, 22 Sep 2021 18:30:37 +0000 (+0100) Subject: nfc: st-nci: Add SPI ID matching DT compatible X-Git-Tag: baikal/aarch64/sdk6.1~5691^2~4 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=442e2f246794bce85a326ccac9517d3751672cf7;p=kernel.git nfc: st-nci: Add SPI ID matching DT compatible 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 the part name used in the compatible to the list of SPI IDs. Fixes: 0ce7936ceffc ("spi: Revert modalias changes") Signed-off-by: Mark Brown Signed-off-by: David S. Miller --- diff --git a/drivers/nfc/st-nci/spi.c b/drivers/nfc/st-nci/spi.c index a620c34790e6d..0875b773fb413 100644 --- a/drivers/nfc/st-nci/spi.c +++ b/drivers/nfc/st-nci/spi.c @@ -278,6 +278,7 @@ static int st_nci_spi_remove(struct spi_device *dev) static struct spi_device_id st_nci_spi_id_table[] = { {ST_NCI_SPI_DRIVER_NAME, 0}, + {"st21nfcb-spi", 0}, {} }; MODULE_DEVICE_TABLE(spi, st_nci_spi_id_table);