rk2928/rk3026: devices.c: fix gcc error when i2c no selected: implicit declaration of function 'rk30_init_i2c'

This commit is contained in:
黄涛
2013-09-05 10:50:24 +08:00
parent 732bdd052a
commit 31726599c4

View File

@@ -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)
/*****************************************************************************************