Skip to content

Commit 607638b

Browse files
Liao Chenlag-linaro
authored andcommitted
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 <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 6fc9bb8 commit 607638b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mfd/max14577.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ static const struct of_device_id max14577_dt_match[] = {
143143
},
144144
{},
145145
};
146+
MODULE_DEVICE_TABLE(of, max14577_dt_match);
146147

147148
static bool max14577_muic_volatile_reg(struct device *dev, unsigned int reg)
148149
{

0 commit comments

Comments
 (0)