]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
regulator: userspace-consumer: add module device table
authorJohn Keeping <jkeeping@inmusicbrands.com>
Mon, 26 Feb 2024 16:05:53 +0000 (16:05 +0000)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:34 +0000 (18:19 -0400)
commit271d0efed20afb264087ef36b3e5e219e47906b2
tree48606fae06e858cdc9862e7f7e58cec85b84772e
parent656311b9bf9e764b7cb91b93c6e4cff86435d169
regulator: userspace-consumer: add module device table

[ Upstream commit 531a0c0cdbff9cecf41073220a826f8b1132f9ab ]

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: 5c51d4afcf3fd ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/userspace-consumer.c