]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
hx4700: regulator: declare full constraints
authorMartin Vajnar <martin.vajnar@gmail.com>
Tue, 23 Dec 2014 23:27:57 +0000 (00:27 +0100)
committerZefan Li <lizefan@huawei.com>
Fri, 19 Jun 2015 03:40:10 +0000 (11:40 +0800)
commit a52d209336f8fc7483a8c7f4a8a7d2a8e1692a6c upstream.

Since the removal of CONFIG_REGULATOR_DUMMY option, the touchscreen stopped
working. This patch enables the "replacement" for REGULATOR_DUMMY and
allows the touchscreen to work even though there is no regulator for "vcc".

Signed-off-by: Martin Vajnar <martin.vajnar@gmail.com>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Zefan Li <lizefan@huawei.com>
arch/arm/mach-pxa/hx4700.c

index b83b95a2950342b298a8693b753217feacb4b5ab..f35a30f19874b8a1bdca9172b8052939708a849e 100644 (file)
@@ -881,6 +881,8 @@ static void __init hx4700_init(void)
        mdelay(10);
        gpio_set_value(GPIO71_HX4700_ASIC3_nRESET, 1);
        mdelay(10);
+
+       regulator_has_full_constraints();
 }
 
 MACHINE_START(H4700, "HP iPAQ HX4700")