summaryrefslogtreecommitdiff
path: root/drivers/counter
diff options
context:
space:
mode:
authorLiao Chen <liaochen4@huawei.com>2024-09-02 12:20:14 +0000
committerWilliam Breathitt Gray <wbg@kernel.org>2024-09-30 22:27:59 +0900
commita3911e087d6237f5225bb41bb7d5052c33a794b1 (patch)
treeec6786632d85b57bc9a767ae9be99b7a89ec2fcc /drivers/counter
parent9852d85ec9d492ebef56dc5f229416c925758edc (diff)
downloadlwn-a3911e087d6237f5225bb41bb7d5052c33a794b1.tar.gz
lwn-a3911e087d6237f5225bb41bb7d5052c33a794b1.zip
counter: ftm-quaddec: Enable module autoloading
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> Link: https://lore.kernel.org/r/20240902122014.905237-1-liaochen4@huawei.com Signed-off-by: William Breathitt Gray <wbg@kernel.org>
Diffstat (limited to 'drivers/counter')
-rw-r--r--drivers/counter/ftm-quaddec.c1
1 files changed, 1 insertions, 0 deletions
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 = {