Skip to content

Commit

Permalink
nfc: st-nci: Add SPI ID matching DT compatible
Browse files Browse the repository at this point in the history
[ Upstream commit 3133944 ]

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: 96c8395 ("spi: Revert modalias changes")
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
broonie authored and gregkh committed Sep 30, 2021
1 parent 741760f commit 339440b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/nfc/st-nci/spi.c
Expand Up @@ -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);
Expand Down

0 comments on commit 339440b

Please sign in to comment.