From: Kuninori Morimoto Date: Tue, 9 Apr 2013 09:37:15 +0000 (-0700) Subject: ARM: shmobile: bockw: add dummy regulators for SMSC X-Git-Tag: next-20130527~8^2^14~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f0c6f7a3ab6e25de867c2a13c3cd4b17526a4ade;p=karo-tx-linux.git ARM: shmobile: bockw: add dummy regulators for SMSC SMSC driver will try to get regulator if .config had CONFIG_REGULATOR, and, shmobile_defconfig has it. SMSC driver on Bock-W board will be failed if it doens't have dummy regulator settings. Signed-off-by: Kuninori Morimoto Signed-off-by: Simon Horman --- diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index 764988507fb5..3e0b6418508a 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c @@ -19,6 +19,8 @@ */ #include +#include +#include #include #include #include @@ -33,6 +35,12 @@ * SW41 SCIF RCAN */ +/* Dummy supplies, where voltage doesn't matter */ +static struct regulator_consumer_supply dummy_supplies[] = { + REGULATOR_SUPPLY("vddvario", "smsc911x"), + REGULATOR_SUPPLY("vdd33a", "smsc911x"), +}; + static struct smsc911x_platform_config smsc911x_data = { .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, @@ -68,6 +76,9 @@ static void __init bockw_init(void) iowrite16(val, fpga + IRQ0MR); iounmap(fpga); + regulator_register_fixed(0, dummy_supplies, + ARRAY_SIZE(dummy_supplies)); + platform_device_register_resndata( &platform_bus, "smsc911x", -1, smsc911x_resources, ARRAY_SIZE(smsc911x_resources),