[PATCH] ARM: U300: Add proper ifdef guard to fix build error when CONFIG_I2C_STU300=m

Linus Walleij linus.walleij at linaro.org
Tue May 14 08:02:55 EDT 2013


On Mon, May 6, 2013 at 9:15 AM, Axel Lin <axel.lin at ingics.com> wrote:

> I got below build error if CONFIG_I2C_STU300=m.
>
> ERROR: "i2c_register_board_info" [arch/arm/mach-u300/i2c.ko] undefined!
> make[1]: *** [__modpost] Error 1
> make: *** [modules] Error 2
>
> Fix it by adding proper ifdef guard in i2c.h and Makefile.
> So arch/arm/mach-u300/i2c.c will be compiled when CONFIG_I2C_STU300 is
> configured as built-in or as a module.
>
> Signed-off-by: Axel Lin <axel.lin at ingics.com>

This file will be deleted in v3.11, see:
http://marc.info/?l=linux-arm-kernel&m=136662534118633&w=2

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list