From: Joachim Eastwood Date: Sat, 9 Feb 2013 18:14:00 +0000 (+0100) Subject: i2c: at91: fix unsed variable warning when building with !CONFIG_OF X-Git-Tag: v3.9-rc1~75^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4182b434bf760355a1516b1d3d9f73aa419eeeec;p=pandora-kernel.git i2c: at91: fix unsed variable warning when building with !CONFIG_OF Commit 70d46a2 "i2c: at91: add dt support to i2c-at91" added DT only support for at91sam9x5. Building i2c-at91 without CONFIG_OF now warns about at91sam9x5_config as being unused. drivers/i2c/busses/i2c-at91.c:556:30: warning: 'at91sam9x5_config' defined but not used [-Wunused-variable] Move at91sam9x5_config under the defined(CONFIG_OF) guard as new AT91 SoCs will be DT only. Signed-off-by: Joachim Eastwood Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed