Skip to content

Commit 972c91f

Browse files
charleskeepaxlag-linaro
authored andcommitted
mfd: arizona-spi: Add missing MODULE_DEVICE_TABLE
This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as a module. Fixes: 3f65555 ("mfd: arizona: Split of_match table into I2C and SPI versions") Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230323134138.834369-1-ckeepax@opensource.cirrus.com
1 parent 9896a19 commit 972c91f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/mfd/arizona-spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ static const struct of_device_id arizona_spi_of_match[] = {
277277
{ .compatible = "cirrus,cs47l24", .data = (void *)CS47L24 },
278278
{},
279279
};
280+
MODULE_DEVICE_TABLE(of, arizona_spi_of_match);
280281
#endif
281282

282283
static struct spi_driver arizona_spi_driver = {

0 commit comments

Comments
 (0)