aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2014-12-04 06:10:00 -0500
committerRobert Jarzmik <robert.jarzmik@free.fr>2014-12-26 12:03:20 -0500
commit271e80176aae4e5b481f4bb92df9768c6075bbca (patch)
tree4f4430e9cda5513029aa4a30909e024518c3e875 /arch/arm/mach-pxa
parent3ad32229bed9953dd2085ef992adb161ed0c9194 (diff)
ARM: pxa: add regulator_has_full_constraints to corgi board file
Add regulator_has_full_constraints() call to corgi board file to let regulator core know that we do not have any additional regulators left. This lets it substitute unprovided regulators with dummy ones. This fixes the following warnings that can be seen on corgi if regulators are enabled: ads7846 spi1.0: unable to get regulator: -517 spi spi1.0: Driver ads7846 requests probe deferral wm8731 0-001b: Failed to get supply 'AVDD': -517 wm8731 0-001b: Failed to request supplies: -517 wm8731 0-001b: ASoC: failed to probe component -517 corgi-audio corgi-audio: ASoC: failed to instantiate card -517 Cc: stable@vger.kernel.org Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r--arch/arm/mach-pxa/corgi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c
index 06022b235730..89f790dda93e 100644
--- a/arch/arm/mach-pxa/corgi.c
+++ b/arch/arm/mach-pxa/corgi.c
@@ -26,6 +26,7 @@
26#include <linux/i2c.h> 26#include <linux/i2c.h>
27#include <linux/i2c/pxa-i2c.h> 27#include <linux/i2c/pxa-i2c.h>
28#include <linux/io.h> 28#include <linux/io.h>
29#include <linux/regulator/machine.h>
29#include <linux/spi/spi.h> 30#include <linux/spi/spi.h>
30#include <linux/spi/ads7846.h> 31#include <linux/spi/ads7846.h>
31#include <linux/spi/corgi_lcd.h> 32#include <linux/spi/corgi_lcd.h>
@@ -752,6 +753,8 @@ static void __init corgi_init(void)
752 sharpsl_nand_partitions[1].size = 53 * 1024 * 1024; 753 sharpsl_nand_partitions[1].size = 53 * 1024 * 1024;
753 754
754 platform_add_devices(devices, ARRAY_SIZE(devices)); 755 platform_add_devices(devices, ARRAY_SIZE(devices));
756
757 regulator_has_full_constraints();
755} 758}
756 759
757static void __init fixup_corgi(struct tag *tags, char **cmdline) 760static void __init fixup_corgi(struct tag *tags, char **cmdline)