diff --git a/kernel.spec b/kernel.spec index 0870de8b4..899cca42d 100644 --- a/kernel.spec +++ b/kernel.spec @@ -499,6 +499,7 @@ Patch05: kbuild-AFTER_LINK.patch Patch450: input-kill-stupid-messages.patch Patch452: no-pcspkr-modalias.patch +Patch458: regulator-axp20x-module-alias.patch Patch470: die-floppy-die.patch Patch510: input-silence-i8042-noise.patch @@ -1392,6 +1393,8 @@ ApplyPatch 0001-x86-cpu-cacheinfo-Fix-teardown-path.patch #CVE-2015-5257 rhbz 1265607 1265612 ApplyPatch USB-whiteheat-fix-potential-null-deref-at-probe.patch +ApplyPatch regulator-axp20x-module-alias.patch + # END OF PATCH APPLICATIONS %endif @@ -2242,6 +2245,9 @@ fi # # %changelog +* Mon Sep 28 2015 Peter Robinson +- Add upstream patch to fix a Allwinner regulator loading as a module + * Thu Sep 24 2015 Josh Boyer - CVE-2015-5257 Null ptr deref in usb whiteheat driver (rhbz 1265607 1265612) diff --git a/regulator-axp20x-module-alias.patch b/regulator-axp20x-module-alias.patch new file mode 100644 index 000000000..f20c9b3d6 --- /dev/null +++ b/regulator-axp20x-module-alias.patch @@ -0,0 +1,26 @@ +From d4ea7d86457a8d0ea40ce77bdeda1fc966cc35ec Mon Sep 17 00:00:00 2001 +From: Ian Campbell +Date: Sat, 1 Aug 2015 18:13:25 +0100 +Subject: 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. + +Signed-off-by: Ian Campbell +Signed-off-by: Mark Brown + +diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c +index 6468291..01bf347 100644 +--- a/drivers/regulator/axp20x-regulator.c ++++ b/drivers/regulator/axp20x-regulator.c +@@ -405,3 +405,4 @@ module_platform_driver(axp20x_regulator_driver); + MODULE_LICENSE("GPL v2"); + MODULE_AUTHOR("Carlo Caione "); + MODULE_DESCRIPTION("Regulator Driver for AXP20X PMIC"); ++MODULE_ALIAS("platform:axp20x-regulator"); +-- +cgit v0.10.2 +