diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-03-24 07:29:58 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-03-24 07:29:58 -0400 |
commit | 511f1cb6d426938fabf9c6d69ce4861b66ffd919 (patch) | |
tree | 88fd9b5c15ccb42d5d582f83e87ce5d3f16127cb /arch/arm/plat-mxc | |
parent | f907ab06bb021bcb91d39c8d1b36536ebdb318fa (diff) | |
parent | 4992fa1fd425f1934f503ffa96b68e235b89db9a (diff) |
Merge tag 'regulator-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator into next/drivers
The pxa regulator branch removes the bq24022 driver, while a lot of
other regulator drivers got added in the regulator tree. This
resolves the trivial conflicts by merging in the regulator patches
that are already merged into v3.4.
Conflicts:
drivers/regulator/Kconfig
drivers/regulator/Makefile
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/plat-mxc')
-rw-r--r-- | arch/arm/plat-mxc/3ds_debugboard.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/3ds_debugboard.c b/arch/arm/plat-mxc/3ds_debugboard.c index f0ba0726306c..d1e31fa1b0c3 100644 --- a/arch/arm/plat-mxc/3ds_debugboard.c +++ b/arch/arm/plat-mxc/3ds_debugboard.c | |||
@@ -16,6 +16,8 @@ | |||
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/gpio.h> | 17 | #include <linux/gpio.h> |
18 | #include <linux/smsc911x.h> | 18 | #include <linux/smsc911x.h> |
19 | #include <linux/regulator/machine.h> | ||
20 | #include <linux/regulator/fixed.h> | ||
19 | 21 | ||
20 | #include <mach/hardware.h> | 22 | #include <mach/hardware.h> |
21 | 23 | ||
@@ -148,6 +150,11 @@ static struct irq_chip expio_irq_chip = { | |||
148 | .irq_unmask = expio_unmask_irq, | 150 | .irq_unmask = expio_unmask_irq, |
149 | }; | 151 | }; |
150 | 152 | ||
153 | static struct regulator_consumer_supply dummy_supplies[] = { | ||
154 | REGULATOR_SUPPLY("vdd33a", "smsc911x"), | ||
155 | REGULATOR_SUPPLY("vddvario", "smsc911x"), | ||
156 | }; | ||
157 | |||
151 | int __init mxc_expio_init(u32 base, u32 p_irq) | 158 | int __init mxc_expio_init(u32 base, u32 p_irq) |
152 | { | 159 | { |
153 | int i; | 160 | int i; |
@@ -188,6 +195,8 @@ int __init mxc_expio_init(u32 base, u32 p_irq) | |||
188 | irq_set_chained_handler(p_irq, mxc_expio_irq_handler); | 195 | irq_set_chained_handler(p_irq, mxc_expio_irq_handler); |
189 | 196 | ||
190 | /* Register Lan device on the debugboard */ | 197 | /* Register Lan device on the debugboard */ |
198 | regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies)); | ||
199 | |||
191 | smsc911x_resources[0].start = LAN9217_BASE_ADDR(base); | 200 | smsc911x_resources[0].start = LAN9217_BASE_ADDR(base); |
192 | smsc911x_resources[0].end = LAN9217_BASE_ADDR(base) + 0x100 - 1; | 201 | smsc911x_resources[0].end = LAN9217_BASE_ADDR(base) + 0x100 - 1; |
193 | platform_device_register(&smsc_lan9217_device); | 202 | platform_device_register(&smsc_lan9217_device); |