diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-07-25 13:13:09 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-07-25 13:13:09 +0900 |
commit | a3fd869a6425082f6014ded43684508602319900 (patch) | |
tree | f73df467182529f27c7a9c154202a3498dd5f792 /arch/sh/boards/board-apsh4a3a.c | |
parent | 90eed7d87b748f9c0d11b9bad64a4c41e31b78c4 (diff) | |
parent | 89d71486b293565aa345e1b722647cb29ade465c (diff) |
Merge branches 'sh/urgent' and 'sh/regulator' into sh-latest
Diffstat (limited to 'arch/sh/boards/board-apsh4a3a.c')
-rw-r--r-- | arch/sh/boards/board-apsh4a3a.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sh/boards/board-apsh4a3a.c b/arch/sh/boards/board-apsh4a3a.c index 2823619c6006..0a39c241628a 100644 --- a/arch/sh/boards/board-apsh4a3a.c +++ b/arch/sh/boards/board-apsh4a3a.c @@ -13,6 +13,8 @@ #include <linux/platform_device.h> #include <linux/io.h> #include <linux/mtd/physmap.h> +#include <linux/regulator/fixed.h> +#include <linux/regulator/machine.h> #include <linux/smsc911x.h> #include <linux/irq.h> #include <linux/clk.h> @@ -66,6 +68,12 @@ static struct platform_device nor_flash_device = { .resource = nor_flash_resources, }; +/* Dummy supplies, where voltage doesn't matter */ +static struct regulator_consumer_supply dummy_supplies[] = { + REGULATOR_SUPPLY("vddvario", "smsc911x"), + REGULATOR_SUPPLY("vdd33a", "smsc911x"), +}; + static struct resource smsc911x_resources[] = { [0] = { .name = "smsc911x-memory", @@ -105,6 +113,8 @@ static struct platform_device *apsh4a3a_devices[] __initdata = { static int __init apsh4a3a_devices_setup(void) { + regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies)); + return platform_add_devices(apsh4a3a_devices, ARRAY_SIZE(apsh4a3a_devices)); } |