cpufreq: armada-37xx: Add missing MODULE_DEVICE_TABLE
Subsystems (2)
PATCH 1/1 cpufreq: armada-37xx: Add missing MODULE_DEVICE_TABLE
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.
--- drivers/cpufreq/armada-37xx-cpufreq.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/cpufreq/armada-37xx-cpufreq.c +6 -0
@@ -484,6 +484,12 @@ static int __init armada37xx_cpufreq_driver_init(void)/* late_initcall, to guarantee the driver is loaded after A37xx clock driver */ late_initcall (armada37xx_cpufreq_driver_init); +static const struct of_device_id armada37xx_cpufreq_of_match[] = { + { .compatible ="marvell,armada-3700-nb-pm" }, + { }, +}; +MODULE_DEVICE_TABLE (of, armada37xx_cpufreq_of_match); +MODULE_AUTHOR ("Gregory CLEMENT <[email protected]>" );MODULE_DESCRIPTION ("Armada 37xx cpufreq driver" );MODULE_LICENSE ("GPL" );
Signature · 7 lines
2.20.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 7 lines · Pali Rohár
CONFIG_ARM_ARMADA_37XX_CPUFREQis tristate option and therefore this cpufreq driver can be compiled as a module. This patch adds missingMODULE_DEVICE_TABLEwhich generates correct modalias for automatic loading of this cpufreq driver when is compiled as an external module.Signed-off-by Pali Rohár <[email protected]>Fixes 92ce45fb875d7 ("cpufreq: Add DVFS support for Armada 37xx")
Andrew
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 19 lines · Pali Rohár
CONFIG_ARM_ARMADA_37XX_CPUFREQis tristate option and therefore this cpufreq driver can be compiled as a module. This patch adds missingMODULE_DEVICE_TABLEwhich generates correct modalias for automatic loading of this cpufreq driver when is compiled as an external module.Reviewed-by Andrew Lunn <[email protected]>Signed-off-by Pali Rohár <[email protected]>Fixes 92ce45fb875d7 ("cpufreq: Add DVFS support for Armada 37xx")--- drivers/cpufreq/armada-37xx-cpufreq.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/cpufreq/armada-37xx-cpufreq.c +0
-0@@ -484,6 +484,12 @@ static int __init armada37xx_cpufreq_driver_init(void)/* late_initcall, to guarantee the driver is loaded after A37xx clock driver */ late_initcall (armada37xx_cpufreq_driver_init);
drivers/cpufreq/armada-37xx-cpufreq.c static int __init armada37xx_cpufreq_driver_init(void) · line 495
Quoted 10 lines
drivers/cpufreq/armada-37xx-cpufreq.c +6
-0+static const struct of_device_id armada37xx_cpufreq_of_match[] = { + { .compatible ="marvell,armada-3700-nb-pm" }, + { }, +}; +MODULE_DEVICE_TABLE (of, armada37xx_cpufreq_of_match); +MODULE_AUTHOR ("Gregory CLEMENT <[email protected]>" );MODULE_DESCRIPTION ("Armada 37xx cpufreq driver" );MODULE_LICENSE ("GPL" );
Applied. Thanks.
Signature · 1 line
viresh