]> git.itanic.dy.fi Git - linux-stable/commitdiff
cpufreq: mediatek-hw: Register to module device table
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Thu, 26 Jan 2023 15:48:56 +0000 (10:48 -0500)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 6 Feb 2023 04:01:38 +0000 (09:31 +0530)
Register the compatibles for this module on the module device table so
it can be automatically loaded when a matching device is found on the
system.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/mediatek-cpufreq-hw.c

index f803397790846efc4dcaf03798c6a0bed0f615c7..115b0eda38c14f766e9db012e250dcccb518f513 100644 (file)
@@ -324,6 +324,7 @@ static const struct of_device_id mtk_cpufreq_hw_match[] = {
        { .compatible = "mediatek,cpufreq-hw", .data = &cpufreq_mtk_offsets },
        {}
 };
+MODULE_DEVICE_TABLE(of, mtk_cpufreq_hw_match);
 
 static struct platform_driver mtk_cpufreq_hw_driver = {
        .probe = mtk_cpufreq_hw_driver_probe,