diff mbox series

[-next] counter: ftm-quaddec: Enable module autoloading

Message ID 20240902122014.905237-1-liaochen4@huawei.com (mailing list archive)
State Handled Elsewhere
Headers show
Series [-next] counter: ftm-quaddec: Enable module autoloading | expand

Commit Message

Liao Chen Sept. 2, 2024, 12:20 p.m. UTC
Add MODULE_DEVICE_TABLE(), so modules can be properly autoloaded based
on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
 drivers/counter/ftm-quaddec.c | 1 +
 1 file changed, 1 insertion(+)

Comments

William Breathitt Gray Sept. 7, 2024, 11:20 a.m. UTC | #1
On Mon, 02 Sep 2024 12:20:14 +0000, Liao Chen wrote:
> Add MODULE_DEVICE_TABLE(), so modules can be properly autoloaded based
> on the alias from of_device_id table.
> 
> 

Applied, thanks!

[1/1] counter: ftm-quaddec: Enable module autoloading
      commit: 0d0f611bdf8e1d06df7ecb44b424a6fb093e2efc

Best regards,
diff mbox series

Patch

diff --git a/drivers/counter/ftm-quaddec.c b/drivers/counter/ftm-quaddec.c
index 200876f3ec04..6ac4efb5658b 100644
--- a/drivers/counter/ftm-quaddec.c
+++ b/drivers/counter/ftm-quaddec.c
@@ -311,6 +311,7 @@  static const struct of_device_id ftm_quaddec_match[] = {
 	{ .compatible = "fsl,ftm-quaddec" },
 	{},
 };
+MODULE_DEVICE_TABLE(of, ftm_quaddec_match);
 
 static struct platform_driver ftm_quaddec_driver = {
 	.driver = {