Skip to contentSkip to conversation

regulator: axp20x: Add module alias

PATCH In review Ian Campbell 4 participants 4 messages Aug 1, 2015 – Aug 4, 2015 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH v2 1/1 regulator: axp20x: Add module alias

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.

Cc Liam Girdwood <[email protected]>
Cc Mark Brown <[email protected]>
Cc Chen-Yu Tsai <[email protected]>
Cc Maxime Ripard <[email protected]>

---
v2: Submit properly.

---
 drivers/regulator/axp20x-regulator.c | 1 +
 1 file changed, 1 insertion(+)
drivers/regulator/axp20x-regulator.c +1 -0
index e4331f5..2c82131 100644
@@ -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
#2 lore raw

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

#3 lore raw
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
maintainer
#4 lore raw
In reply to Ian Campbell
Quoted 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.