aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx3/mx31ads.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/arch/arm/mach-mx3/mx31ads.c b/arch/arm/mach-mx3/mx31ads.c
index 0497c152be1..cda570be124 100644
--- a/arch/arm/mach-mx3/mx31ads.c
+++ b/arch/arm/mach-mx3/mx31ads.c
@@ -307,12 +307,8 @@ static struct regulator_init_data ldo1_data = {
307}; 307};
308 308
309static struct regulator_consumer_supply ldo2_consumers[] = { 309static struct regulator_consumer_supply ldo2_consumers[] = {
310 { 310 { .supply = "AVDD", .dev_name = "1-001a" },
311 .supply = "AVDD", 311 { .supply = "HPVDD", .dev_name = "1-001a" },
312 },
313 {
314 .supply = "HPVDD",
315 },
316}; 312};
317 313
318/* CODEC and SIM */ 314/* CODEC and SIM */
@@ -382,8 +378,6 @@ static struct wm8350_audio_platform_data imx32ads_wm8350_setup = {
382 378
383static int mx31_wm8350_init(struct wm8350 *wm8350) 379static int mx31_wm8350_init(struct wm8350 *wm8350)
384{ 380{
385 int i;
386
387 wm8350_gpio_config(wm8350, 0, WM8350_GPIO_DIR_IN, 381 wm8350_gpio_config(wm8350, 0, WM8350_GPIO_DIR_IN,
388 WM8350_GPIO0_PWR_ON_IN, WM8350_GPIO_ACTIVE_LOW, 382 WM8350_GPIO0_PWR_ON_IN, WM8350_GPIO_ACTIVE_LOW,
389 WM8350_GPIO_PULL_UP, WM8350_GPIO_INVERT_OFF, 383 WM8350_GPIO_PULL_UP, WM8350_GPIO_INVERT_OFF,
@@ -419,10 +413,6 @@ static int mx31_wm8350_init(struct wm8350 *wm8350)
419 WM8350_GPIO_PULL_NONE, WM8350_GPIO_INVERT_OFF, 413 WM8350_GPIO_PULL_NONE, WM8350_GPIO_INVERT_OFF,
420 WM8350_GPIO_DEBOUNCE_OFF); 414 WM8350_GPIO_DEBOUNCE_OFF);
421 415
422 /* Fix up for our own supplies. */
423 for (i = 0; i < ARRAY_SIZE(ldo2_consumers); i++)
424 ldo2_consumers[i].dev = wm8350->dev;
425
426 wm8350_register_regulator(wm8350, WM8350_DCDC_1, &sw1a_data); 416 wm8350_register_regulator(wm8350, WM8350_DCDC_1, &sw1a_data);
427 wm8350_register_regulator(wm8350, WM8350_DCDC_3, &viohi_data); 417 wm8350_register_regulator(wm8350, WM8350_DCDC_3, &viohi_data);
428 wm8350_register_regulator(wm8350, WM8350_DCDC_4, &violo_data); 418 wm8350_register_regulator(wm8350, WM8350_DCDC_4, &violo_data);