summaryrefslogtreecommitdiff
path: root/drivers/mfd/max14577.c
diff options
context:
space:
mode:
authorLiao Chen <liaochen4@huawei.com>2024-08-14 02:57:10 +0000
committerLee Jones <lee@kernel.org>2024-09-23 16:20:53 +0100
commit607638b73cb097e727b19e4c09f2c68bddae941e (patch)
tree9d08bdd818f15831e11b43b156060548100b6561 /drivers/mfd/max14577.c
parent6fc9bb82a3ef0691fc2297cd7404d3873c95b7be (diff)
mfd: max14577: Provide MODULE_DEVICE_TABLE() to fix module autoloading
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>
Diffstat (limited to 'drivers/mfd/max14577.c')
-rw-r--r--drivers/mfd/max14577.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c
index 67bf4de4c0c1..6fce79ec2dc6 100644
--- a/drivers/mfd/max14577.c
+++ b/drivers/mfd/max14577.c
@@ -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)
{