From 3cf8efe50ae67f543969113be98ffa661e76e276 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Wed, 27 Jun 2012 00:50:02 +0200 Subject: [PATCH] --- yaml --- r: 321223 b: refs/heads/master c: 9d5be6acd832097eee53d0778a89b39ee72f8f2a h: refs/heads/master i: 321221: 404f4afc4428103f1d5ac044668e0ce3f48af158 321219: dd820b4a708cfeca8b768c78443faa4ff712a59e 321215: 57bd669a415fb62c9d8983320eaaa100522b0c34 v: v3 --- [refs] | 2 +- trunk/arch/sh/boards/board-sh2007.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index f2110c539492..68a34a097184 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 73c2a9dc0eb0049e01e8e71a0c3854b393723be7 +refs/heads/master: 9d5be6acd832097eee53d0778a89b39ee72f8f2a diff --git a/trunk/arch/sh/boards/board-sh2007.c b/trunk/arch/sh/boards/board-sh2007.c index b90b78f6a829..1980bb7e5780 100644 --- a/trunk/arch/sh/boards/board-sh2007.c +++ b/trunk/arch/sh/boards/board-sh2007.c @@ -6,6 +6,8 @@ */ #include #include +#include +#include #include #include #include @@ -13,6 +15,14 @@ #include #include +/* Dummy supplies, where voltage doesn't matter */ +static struct regulator_consumer_supply dummy_supplies[] = { + REGULATOR_SUPPLY("vddvario", "smsc911x.0"), + REGULATOR_SUPPLY("vdd33a", "smsc911x.0"), + REGULATOR_SUPPLY("vddvario", "smsc911x.1"), + REGULATOR_SUPPLY("vdd33a", "smsc911x.1"), +}; + struct smsc911x_platform_config smc911x_info = { .flags = SMSC911X_USE_32BIT, .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, @@ -98,6 +108,8 @@ static struct platform_device *sh2007_devices[] __initdata = { static int __init sh2007_io_init(void) { + regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies)); + platform_add_devices(sh2007_devices, ARRAY_SIZE(sh2007_devices)); return 0; }