From: Guennadi Liakhovetski Date: Tue, 26 Jun 2012 22:32:27 +0000 (+0200) Subject: ARM: mach-shmobile: add fixed voltage regulators to bonito X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d3ed18eae7b6d496e28efac428f4e7f2333ff7c2;p=linux-beck.git ARM: mach-shmobile: add fixed voltage regulators to bonito On bonito provide a dummy regulator for the smsc911x driver. Signed-off-by: Guennadi Liakhovetski Acked-by: Magnus Damm Signed-off-by: Rafael J. Wysocki --- diff --git a/arch/arm/mach-shmobile/board-bonito.c b/arch/arm/mach-shmobile/board-bonito.c index e9b32cfbf741..4129008eae29 100644 --- a/arch/arm/mach-shmobile/board-bonito.c +++ b/arch/arm/mach-shmobile/board-bonito.c @@ -26,6 +26,8 @@ #include #include #include +#include +#include #include #include #include @@ -75,6 +77,12 @@ * S38.2 = OFF */ +/* Dummy supplies, where voltage doesn't matter */ +static struct regulator_consumer_supply dummy_supplies[] = { + REGULATOR_SUPPLY("vddvario", "smsc911x"), + REGULATOR_SUPPLY("vdd33a", "smsc911x"), +}; + /* * FPGA */ @@ -360,6 +368,8 @@ static void __init bonito_init(void) { u16 val; + regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies)); + r8a7740_pinmux_init(); bonito_fpga_init();