Re: [PATCH] mach-ux500: fix build error due to unknown 'regulator_en' field

From: Linus Walleij
Date: Thu Jun 30 2011 - 02:30:40 EST


Thanks Axel,

On Wed, Jun 29, 2011 at 3:33 PM, Axel Lin <axel.lin@xxxxxxxxx> wrote:

> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/