]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
mfd: arizona-spi: Add missing MODULE_DEVICE_TABLE
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 23 Mar 2023 13:41:38 +0000 (13:41 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 Jul 2023 10:17:12 +0000 (12:17 +0200)
BugLink: https://bugs.launchpad.net/bugs/2025067
[ Upstream commit 972c91fd7beddc3f19c8c855f6e60e7dbd435cbd ]

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: 3f65555c417c ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/mfd/arizona-spi.c

index da05b966d48c63c8b76920fe7e59ca2d31ddd659..02cf4f3e91d767ce78fd00bd03196348a9bb4a5d 100644 (file)
@@ -277,6 +277,7 @@ static const struct of_device_id arizona_spi_of_match[] = {
        { .compatible = "cirrus,cs47l24", .data = (void *)CS47L24 },
        {},
 };
+MODULE_DEVICE_TABLE(of, arizona_spi_of_match);
 #endif
 
 static struct spi_driver arizona_spi_driver = {