diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-08-20 09:57:36 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-20 19:32:14 -0400 |
commit | 045a4b7ee73764131c39733de7d06e8c553f805a (patch) | |
tree | 9e53e5cdde37ffb996ac3f86496122d82f7e080b /arch/sh/boards | |
parent | e89561cf49bb7f83b48067924470d313e2d570a9 (diff) |
sh: i2c compile fix for kfr2r09
Fix the kfr2r09 board code so it compiles if CONFIG_I2C=n.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards')
-rw-r--r-- | arch/sh/boards/mach-kfr2r09/setup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-kfr2r09/setup.c b/arch/sh/boards/mach-kfr2r09/setup.c index 1cbd6a3655c3..1e2cb1976dfb 100644 --- a/arch/sh/boards/mach-kfr2r09/setup.c +++ b/arch/sh/boards/mach-kfr2r09/setup.c | |||
@@ -219,6 +219,7 @@ static struct platform_device *kfr2r09_devices[] __initdata = { | |||
219 | #define BSC_CS4WCR 0xfec10030 | 219 | #define BSC_CS4WCR 0xfec10030 |
220 | #define PORT_MSELCRB 0xa4050182 | 220 | #define PORT_MSELCRB 0xa4050182 |
221 | 221 | ||
222 | #ifdef CONFIG_I2C | ||
222 | static int kfr2r09_usb0_gadget_i2c_setup(void) | 223 | static int kfr2r09_usb0_gadget_i2c_setup(void) |
223 | { | 224 | { |
224 | struct i2c_adapter *a; | 225 | struct i2c_adapter *a; |
@@ -261,6 +262,12 @@ static int kfr2r09_usb0_gadget_i2c_setup(void) | |||
261 | 262 | ||
262 | return 0; | 263 | return 0; |
263 | } | 264 | } |
265 | #else | ||
266 | static int kfr2r09_usb0_gadget_i2c_setup(void) | ||
267 | { | ||
268 | return -ENODEV; | ||
269 | } | ||
270 | #endif | ||
264 | 271 | ||
265 | static int kfr2r09_usb0_gadget_setup(void) | 272 | static int kfr2r09_usb0_gadget_setup(void) |
266 | { | 273 | { |