]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
counter: ftm-quaddec: Enable module autoloading
authorLiao Chen <liaochen4@huawei.com>
Mon, 2 Sep 2024 12:20:14 +0000 (12:20 +0000)
committerWilliam Breathitt Gray <wbg@kernel.org>
Mon, 30 Sep 2024 13:27:59 +0000 (22:27 +0900)
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>
drivers/counter/ftm-quaddec.c

index 200876f3ec0486baadf84eb34c1db769014606fa..6ac4efb5658b7c808548f08b71288c65ccbaa303 100644 (file)
@@ -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 = {