]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: Make i2c_register_board_info() a NOP when CONFIG_I2C_BOARDINFO=n
authorDavid Brownell <david-b@pacbell.net>
Sun, 24 Feb 2008 19:03:42 +0000 (20:03 +0100)
committerJean Delvare <khali@hyperion.delvare>
Sun, 24 Feb 2008 19:03:42 +0000 (20:03 +0100)
commit83a34dc98550f2d190770a194b5dc72df1af66e7
tree11875248c5115517ca1b328a630030461f0d00b1
parentdb476568bfd0c2bb0aa10097ac041e3a1d9fcf00
i2c: Make i2c_register_board_info() a NOP when CONFIG_I2C_BOARDINFO=n

Don't require platform code to be #ifdeffed according to whether
I2C is enabled or not ... if it's not enabled, let GCC compile out
all I2C device declarations.  (Issue noted on an NSLU2 build that
didn't configure I2C.)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
include/linux/i2c.h