]> git.dujemihanovic.xyz Git - linux.git/commitdiff
mfd: max14577: Provide MODULE_DEVICE_TABLE() to fix module autoloading
authorLiao Chen <liaochen4@huawei.com>
Wed, 14 Aug 2024 02:57:10 +0000 (02:57 +0000)
committerLee Jones <lee@kernel.org>
Mon, 23 Sep 2024 15:20:53 +0000 (16:20 +0100)
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240814025710.3875859-1-liaochen4@huawei.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/max14577.c

index 67bf4de4c0c1f42715269dbf4e8b79434437d300..6fce79ec2dc64682ef4d85f22d762ec8e2ce1adb 100644 (file)
@@ -143,6 +143,7 @@ static const struct of_device_id max14577_dt_match[] = {
        },
        {},
 };
+MODULE_DEVICE_TABLE(of, max14577_dt_match);
 
 static bool max14577_muic_volatile_reg(struct device *dev, unsigned int reg)
 {