Skip to content
Commit 26386763 authored by David Brownell's avatar David Brownell Committed by Jean Delvare
Browse files

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: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 104cb574
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment