350ef09
From d4ea7d86457a8d0ea40ce77bdeda1fc966cc35ec Mon Sep 17 00:00:00 2001
350ef09
From: Ian Campbell <ijc@hellion.org.uk>
350ef09
Date: Sat, 1 Aug 2015 18:13:25 +0100
350ef09
Subject: regulator: axp20x: Add module alias
350ef09
350ef09
This allows the module to be autoloaded.
350ef09
350ef09
Together with 07949bf9c63c ("cpufreq: dt: allow driver to boot
350ef09
automatically") this is sufficient to allow a modular kernel (such
350ef09
as Debian's) to enable cpufreq on a Cubietruck.
350ef09
350ef09
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
350ef09
Signed-off-by: Mark Brown <broonie@kernel.org>
350ef09
350ef09
diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c
350ef09
index 6468291..01bf347 100644
350ef09
--- a/drivers/regulator/axp20x-regulator.c
350ef09
+++ b/drivers/regulator/axp20x-regulator.c
350ef09
@@ -405,3 +405,4 @@ module_platform_driver(axp20x_regulator_driver);
350ef09
 MODULE_LICENSE("GPL v2");
350ef09
 MODULE_AUTHOR("Carlo Caione <carlo@caione.org>");
350ef09
 MODULE_DESCRIPTION("Regulator Driver for AXP20X PMIC");
350ef09
+MODULE_ALIAS("platform:axp20x-regulator");
350ef09
-- 
350ef09
cgit v0.10.2
350ef09