Skip to content

Commit 531a0c0

Browse files
johnkeepingbroonie
authored andcommitted
regulator: userspace-consumer: add module device table
The userspace consumer can be built as a module but it cannot be automatically probed as there is no device table to match it up with device tree nodes. Add the missing macro so that the module can load automatically. Fixes: 5c51d4a ("regulator: userspace-consumer: Handle regulator-output DT nodes") Signed-off-by: John Keeping <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent efe9a6d commit 531a0c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/regulator/userspace-consumer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ static const struct of_device_id regulator_userspace_consumer_of_match[] = {
208208
{ .compatible = "regulator-output", },
209209
{},
210210
};
211+
MODULE_DEVICE_TABLE(of, regulator_userspace_consumer_of_match);
211212

212213
static struct platform_driver regulator_userspace_consumer_driver = {
213214
.probe = regulator_userspace_consumer_probe,

0 commit comments

Comments
 (0)