Unverified Commit 531a0c0c authored by John Keeping's avatar John Keeping Committed by Mark Brown
Browse files

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: 5c51d4af ("regulator: userspace-consumer: Handle regulator-output DT nodes")
Signed-off-by: default avatarJohn Keeping <jkeeping@inmusicbrands.com>
Link: https://msgid.link/r/20240226160554.1453283-1-jkeeping@inmusicbrands.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent efe9a6da
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -208,6 +208,7 @@ static const struct of_device_id regulator_userspace_consumer_of_match[] = {
	{ .compatible = "regulator-output", },
	{},
};
MODULE_DEVICE_TABLE(of, regulator_userspace_consumer_of_match);

static struct platform_driver regulator_userspace_consumer_driver = {
	.probe		= regulator_userspace_consumer_probe,