mfd: arizona-i2c: Add the missing device table IDs for OF
authorAndré Apitzsch <git@apitzsch.eu>
Sun, 19 Mar 2023 12:41:53 +0000 (13:41 +0100)
committerLee Jones <lee@kernel.org>
Wed, 26 Apr 2023 10:40:33 +0000 (11:40 +0100)
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.

Signed-off-by: André Apitzsch <git@apitzsch.eu>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230319124153.35294-1-git@apitzsch.eu
drivers/mfd/arizona-i2c.c

index b230158..43e393c 100644 (file)
@@ -112,6 +112,7 @@ static const struct of_device_id arizona_i2c_of_match[] = {
        { .compatible = "wlf,wm1814", .data = (void *)WM1814 },
        {},
 };
+MODULE_DEVICE_TABLE(of, arizona_i2c_of_match);
 #endif
 
 static struct i2c_driver arizona_i2c_driver = {