]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: mchp23k256: Add SPI ID table
authorMark Brown <broonie@kernel.org>
Wed, 2 Feb 2022 14:34:03 +0000 (14:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:29 +0000 (14:23 +0200)
commit1335a747aae07f0a6900e8dcaffa80a5d0631314
tree8e328a708994e6cf9b6172893c7e3ceefcb07bed
parentc9a0bdb8e40eb13df3534355f53c0ae94fc17d78
mtd: mchp23k256: Add SPI ID table

[ Upstream commit d247109d86d2190e9d91c400ab47654f35fe38ef ]

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 an id_table listing the
SPI IDs for everything.

Fixes: 009adf84324f ("spi: Revert modalias changes")
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Michael Walle <michael@walle.cc>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220202143404.16070-3-broonie@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/devices/mchp23k256.c