Skip to content

Commit ca0b860

Browse files
paligregkh
authored andcommitted
cpufreq: armada-37xx: Add missing MODULE_DEVICE_TABLE
[ Upstream commit c942d15 ] CONFIG_ARM_ARMADA_37XX_CPUFREQ is tristate option and therefore this cpufreq driver can be compiled as a module. This patch adds missing MODULE_DEVICE_TABLE which generates correct modalias for automatic loading of this cpufreq driver when is compiled as an external module. Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Pali Rohár <pali@kernel.org> Fixes: 92ce45f ("cpufreq: Add DVFS support for Armada 37xx") [ Viresh: Added __maybe_unused ] Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 1c37441 commit ca0b860

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎drivers/cpufreq/armada-37xx-cpufreq.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,12 @@ static int __init armada37xx_cpufreq_driver_init(void)
484484
/* late_initcall, to guarantee the driver is loaded after A37xx clock driver */
485485
late_initcall(armada37xx_cpufreq_driver_init);
486486

487+
static const struct of_device_id __maybe_unused armada37xx_cpufreq_of_match[] = {
488+
{ .compatible = "marvell,armada-3700-nb-pm" },
489+
{ },
490+
};
491+
MODULE_DEVICE_TABLE(of, armada37xx_cpufreq_of_match);
492+
487493
MODULE_AUTHOR("Gregory CLEMENT <gregory.clement@free-electrons.com>");
488494
MODULE_DESCRIPTION("Armada 37xx cpufreq driver");
489495
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)