regulator: axp20x: Add module alias
PATCH v2 1/1 regulator: axp20x: Add module alias
In reply to a message not in the archiveThis allows the module to be autoloaded.
Together with 07949bf9c63c ("cpufreq: dt: allow driver to boot automatically") this is sufficient to allow a modular kernel (such as Debian's) to enable cpufreq on a Cubietruck.
---
v2: Submit properly.
--- drivers/regulator/axp20x-regulator.c | 1 + 1 file changed, 1 insertion(+)
drivers/regulator/axp20x-regulator.c +1 -0
@@ -264,3 +264,4 @@ module_platform_driver(axp20x_regulator_driver);MODULE_LICENSE ("GPL v2" );MODULE_AUTHOR ("Carlo Caione <[email protected]>" );MODULE_DESCRIPTION ("Regulator Driver for AXP20X PMIC" ); +MODULE_ALIAS ("platform:axp20x-regulator" );
Signature · 1 line
2.1.4
drivers/regulator/axp20x-regulator.c
Quoted 10 lines · Ian Campbell
This allows the module to be autoloaded.
Together with
07949bf9c63c("cpufreq: dt: allow driver to boot automatically") this is sufficient to allow a modular kernel (such as Debian's) to enable cpufreq on a Cubietruck.drivers/regulator/axp20x-regulator.c +1
-0+MODULE_ALIAS ("platform:axp20x-regulator" );
Should this eventually go into stable?
The regulator driver for AXP20x was added in v3.16, so this patch could currently be relevant for the v3.18.y and v4.1.y trees. (In those trees the corresponding platform devices, which are needed to make this alias useful, appear to be present.)
Same question for 07949bf9c63c ("cpufreq: dt: allow driver to boot automatically"), I guess.
Paul Bolle
Quoted 14 lines · Paul Bolle
drivers/regulator/axp20x-regulator.c
Quoted 10 lines · Ian Campbell
This allows the module to be autoloaded.
Together with
07949bf9c63c("cpufreq: dt: allow driver to boot automatically") this is sufficient to allow a modular kernel (such as Debian's) to enable cpufreq on a Cubietruck.drivers/regulator/axp20x-regulator.c +1
-0+MODULE_ALIAS ("platform:axp20x-regulator" );Should this eventually go into stable?
Quoted 7 lines
The regulator driver for AXP20x was added in v3.16, so this patch could currently be relevant for the v3.18.y and v4.1.y trees. (In those trees the corresponding platform devices, which are needed to make this alias useful, appear to be present.)
Same question for
07949bf9c63c("cpufreq: dt: allow driver to boot automatically"), I guess.
Yes, it probably should.
Maxime
Signature · 3 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Mark Brown
maintainerQuoted 5 lines · Ian Campbell
This allows the module to be autoloaded.
Together with
07949bf9c63c("cpufreq: dt: allow driver to boot automatically") this is sufficient to allow a modular kernel (such as Debian's) to enable cpufreq on a Cubietruck.
Please don't bury submissions in old mail threads.