]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: dataflash: Add SPI ID table
authorMark Brown <broonie@kernel.org>
Mon, 20 Jun 2022 15:23:13 +0000 (16:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:45 +0000 (14:23 +0200)
commitb6a3de61e8db680a4aef9228ff2b19a07043c9cd
tree1e3a652e6b76ac80ea01f26dc35d9bde337350e9
parent808f12ee30c041988b9c8db98f03293ca48fe96b
mtd: dataflash: Add SPI ID table

[ Upstream commit 4f1e208e72606b8f9c8cd58ddde04645a4ae5931 ]

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>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220620152313.708768-1-broonie@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/devices/mtd_dataflash.c