aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2012-03-06 14:46:43 -0500
committerHaojian Zhuang <haojian.zhuang@gmail.com>2012-03-28 09:42:53 -0400
commit3a5691326ed3d6a276b4a8663a9190bf73f5de2b (patch)
treefb8a0a1560c6ed53c3be9f2dd87f93ea13792666
parentc16fa4f2ad19908a47c63d8fa436a1178438c7e7 (diff)
ARM: pxa: fix regulator related build fail in magician_defconfig
commit 737f360d5bef5e01c6cfa755dca0b449a154c1e0 (linux-next) "regulator: Remove support for supplies specified by struct device" deletes the field from the struct, but this platform was still trying to set those fields. Delete the assignments. arch/arm/mach-pxa/magician.c:581: error: unknown field 'dev' specified in initializer arch/arm/mach-pxa/magician.c:581: warning: initialization from incompatible pointer type arch/arm/mach-pxa/magician.c:585: error: unknown field 'dev' specified in initializer arch/arm/mach-pxa/magician.c:585: warning: initialization from incompatible pointer type arch/arm/mach-pxa/hx4700.c:683: error: unknown field 'dev' specified in initializer arch/arm/mach-pxa/hx4700.c:683: warning: initialization from incompatible pointer type arch/arm/mach-pxa/hx4700.c:687: error: unknown field 'dev' specified in initializer arch/arm/mach-pxa/hx4700.c:687: warning: initialization from incompatible pointer type Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
-rw-r--r--arch/arm/mach-pxa/hx4700.c2
-rw-r--r--arch/arm/mach-pxa/magician.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c
index 208eef1c0485..d8c01e9b4edc 100644
--- a/arch/arm/mach-pxa/hx4700.c
+++ b/arch/arm/mach-pxa/hx4700.c
@@ -664,11 +664,9 @@ static struct platform_device power_supply = {
664 664
665static struct regulator_consumer_supply bq24022_consumers[] = { 665static struct regulator_consumer_supply bq24022_consumers[] = {
666 { 666 {
667 .dev = &gpio_vbus.dev,
668 .supply = "vbus_draw", 667 .supply = "vbus_draw",
669 }, 668 },
670 { 669 {
671 .dev = &power_supply.dev,
672 .supply = "ac_draw", 670 .supply = "ac_draw",
673 }, 671 },
674}; 672};
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c
index 3d6baf91396c..bd0f86af5a33 100644
--- a/arch/arm/mach-pxa/magician.c
+++ b/arch/arm/mach-pxa/magician.c
@@ -578,11 +578,9 @@ static struct platform_device power_supply = {
578 578
579static struct regulator_consumer_supply bq24022_consumers[] = { 579static struct regulator_consumer_supply bq24022_consumers[] = {
580 { 580 {
581 .dev = &gpio_vbus.dev,
582 .supply = "vbus_draw", 581 .supply = "vbus_draw",
583 }, 582 },
584 { 583 {
585 .dev = &power_supply.dev,
586 .supply = "ac_draw", 584 .supply = "ac_draw",
587 }, 585 },
588}; 586};