Skip to contentSkip to conversation

mach-ux500: fix build error due to unknown 'regulator_en' field

PATCH In review Axel Lin 2 participants 2 messages Jun 29, 2011 – Jun 30, 2011

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 mach-ux500: fix build error due to unknown 'regulator_en' field

Fix below build error:

CC arch/arm/mach-ux500/board-mop500-u8500uib.o
arch/arm/mach-ux500/board-mop500-u8500uib.c:35: error: unknown field 'regulator_en' specified in initializer arch/arm/mach-ux500/board-mop500-u8500uib.c:35: warning: excess elements in struct initializer arch/arm/mach-ux500/board-mop500-u8500uib.c:35: warning: (near initialization for 'rmi4_i2c_dev_platformdata') make[1]: *** [arch/arm/mach-ux500/board-mop500-u8500uib.o] Error 1
make: *** [arch/arm/mach-ux500] Error 2

---
 arch/arm/mach-ux500/board-mop500-u8500uib.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
arch/arm/mach-ux500/board-mop500-u8500uib.c +0 -1
index d8a8734..1af7228 100644
@@ -32,7 +32,6 @@ static struct synaptics_rmi4_platform_data rmi4_i2c_dev_platformdata = {
 	.irq_type       = (IRQF_TRIGGER_FALLING | IRQF_SHARED),
 	.x_flip		= false,
 	.y_flip		= true,
-	.regulator_en   = false,
 };
 
 static struct i2c_board_info __initdata mop500_i2c3_devices_u8500[] = {
Signature · 1 line
1.7.4.1
#1 lore raw

Thanks Axel,

Quoted 8 lines · Axel Lin

Fix below build error:

CC arch/arm/mach-ux500/board-mop500-u8500uib.o
arch/arm/mach-ux500/board-mop500-u8500uib.c:35: error: unknown field 'regulator_en' specified in initializer arch/arm/mach-ux500/board-mop500-u8500uib.c:35: warning: excess elements in struct initializer arch/arm/mach-ux500/board-mop500-u8500uib.c:35: warning: (near initialization for 'rmi4_i2c_dev_platformdata') make[1]: *** [arch/arm/mach-ux500/board-mop500-u8500uib.o] Error 1
make: *** [arch/arm/mach-ux500] Error 2

But uh-oh, that expose our disobedience to the rule that we shall not have cross-dependencies from stable machines to stuff in staging.

It's tricky this time, since that I2C device is added after first probing the I2C bus for board type, but I think I have a solution, hold on for another patch.

Linus Walleij