projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e89561c
)
sh: i2c compile fix for kfr2r09
author
Magnus Damm
<damm@igel.co.jp>
Thu, 20 Aug 2009 13:57:36 +0000
(13:57 +0000)
committer
Paul Mundt
<lethal@linux-sh.org>
Thu, 20 Aug 2009 23:32:14 +0000
(08:32 +0900)
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>
arch/sh/boards/mach-kfr2r09/setup.c
patch
|
blob
|
history
diff --git
a/arch/sh/boards/mach-kfr2r09/setup.c
b/arch/sh/boards/mach-kfr2r09/setup.c
index
1cbd6a3
..
1e2cb19
100644
(file)
--- 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 = {
#define BSC_CS4WCR 0xfec10030
#define PORT_MSELCRB 0xa4050182
+#ifdef CONFIG_I2C
static int kfr2r09_usb0_gadget_i2c_setup(void)
{
struct i2c_adapter *a;
@@
-261,6
+262,12
@@
static int kfr2r09_usb0_gadget_i2c_setup(void)
return 0;
}
+#else
+static int kfr2r09_usb0_gadget_i2c_setup(void)
+{
+ return -ENODEV;
+}
+#endif
static int kfr2r09_usb0_gadget_setup(void)
{