projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
732bdd0
)
rk2928/rk3026: devices.c: fix gcc error when i2c no selected: implicit declaration...
author
黄涛
<huangtao@rock-chips.com>
Thu, 5 Sep 2013 02:50:24 +0000
(10:50 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Thu, 5 Sep 2013 02:50:24 +0000
(10:50 +0800)
arch/arm/mach-rk2928/devices.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rk2928/devices.c
b/arch/arm/mach-rk2928/devices.c
index 4807a39c48b162183772acf1b8c00d8a448c8f82..31dea85f2fa08f1448ef45a1913b6551caac94a8 100644
(file)
--- a/
arch/arm/mach-rk2928/devices.c
+++ b/
arch/arm/mach-rk2928/devices.c
@@
-233,8
+233,6
@@
static void __init rk2928_init_uart(void)
#endif
}
-// i2c
-#ifdef CONFIG_I2C_RK30
#ifdef CONFIG_I2C0_CONTROLLER_RK29
#define I2C0_ADAP_TYPE I2C_RK29_ADAP
#define I2C0_START RK2928_I2C0_PHYS
@@
-440,7
+438,6
@@
static void __init rk2928_init_i2c(void)
platform_device_register(&device_i2c_gpio);
#endif
}
-#endif//end of i2c
#if defined(CONFIG_SPIM0_RK29) || defined(CONFIG_SPIM1_RK29)
/*****************************************************************************************