diff mbox series

slimbus: qcom-ctrl: fix module autoloading

Message ID 20240410170129.248361-1-krzk@kernel.org (mailing list archive)
State Not Applicable
Headers show
Series slimbus: qcom-ctrl: fix module autoloading | expand

Commit Message

Krzysztof Kozlowski April 10, 2024, 5:01 p.m. UTC
Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
based on the alias from of_device_id table.  Pin controllers are
considered core components, so usually they are built-in, however these

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 drivers/slimbus/qcom-ctrl.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Konrad Dybcio April 10, 2024, 5:52 p.m. UTC | #1
On 4/10/24 19:01, Krzysztof Kozlowski wrote:
> Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
> based on the alias from of_device_id table.  Pin controllers are
> considered core components, so usually they are built-in, however these
> 
> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
Srinivas Kandagatla April 11, 2024, 9:50 a.m. UTC | #2
On Wed, 10 Apr 2024 19:01:29 +0200, Krzysztof Kozlowski wrote:
> Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
> based on the alias from of_device_id table.  Pin controllers are
> considered core components, so usually they are built-in, however these
> 
> 

Applied, thanks!

[1/1] slimbus: qcom-ctrl: fix module autoloading
      commit: 772be93c1c247d006bac1a7fe967864d90a34415

Best regards,
diff mbox series

Patch

diff --git a/drivers/slimbus/qcom-ctrl.c b/drivers/slimbus/qcom-ctrl.c
index 400b7b385a44..f7d04b50c973 100644
--- a/drivers/slimbus/qcom-ctrl.c
+++ b/drivers/slimbus/qcom-ctrl.c
@@ -718,6 +718,7 @@  static const struct of_device_id qcom_slim_dt_match[] = {
 	{ .compatible = "qcom,slim", },
 	{}
 };
+MODULE_DEVICE_TABLE(of, qcom_slim_dt_match);
 
 static struct platform_driver qcom_slim_driver = {
 	.probe = qcom_slim_probe,