Skip to content

Commit ddd3f34

Browse files
krzkbroonie
authored andcommitted
regulator: qcom-refgen: fix module autoloading
Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent d3cf8a1 commit ddd3f34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/regulator/qcom-refgen-regulator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ static const struct of_device_id qcom_refgen_match_table[] = {
140140
{ .compatible = "qcom,sm8250-refgen-regulator", .data = &sm8250_refgen_desc },
141141
{ }
142142
};
143+
MODULE_DEVICE_TABLE(of, qcom_refgen_match_table);
143144

144145
static struct platform_driver qcom_refgen_driver = {
145146
.probe = qcom_refgen_probe,

0 commit comments

Comments
 (0)