diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2024-04-10 19:26:14 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-04-10 19:48:58 +0200 |
commit | ddd3f34c10002e41ed3cd89c9bd8f1d05a22506a (patch) | |
tree | 45e614ccccadc26e53955e4537d9e1b6e1d1de48 /drivers/regulator/qcom-refgen-regulator.c | |
parent | regulator: mt6360: De-capitalize devicetree regulator subnodes (diff) | |
download | linux-ddd3f34c10002e41ed3cd89c9bd8f1d05a22506a.tar.xz linux-ddd3f34c10002e41ed3cd89c9bd8f1d05a22506a.zip |
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 <krzk@kernel.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://msgid.link/r/20240410172615.255424-1-krzk@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/qcom-refgen-regulator.c')
-rw-r--r-- | drivers/regulator/qcom-refgen-regulator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/qcom-refgen-regulator.c b/drivers/regulator/qcom-refgen-regulator.c index 656fe330d38f..063e12c08e75 100644 --- a/drivers/regulator/qcom-refgen-regulator.c +++ b/drivers/regulator/qcom-refgen-regulator.c @@ -140,6 +140,7 @@ static const struct of_device_id qcom_refgen_match_table[] = { { .compatible = "qcom,sm8250-refgen-regulator", .data = &sm8250_refgen_desc }, { } }; +MODULE_DEVICE_TABLE(of, qcom_refgen_match_table); static struct platform_driver qcom_refgen_driver = { .probe = qcom_refgen_probe, |