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 <jkeeping@inmusicbrands.com> Link: https://msgid.link/r/20240226160554.1453283-1-jkeeping@inmusicbrands.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent efe9a6d commit 531a0c0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)