From 31726599c4f666c08d0f92d386361f73787cf279 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Thu, 5 Sep 2013 10:50:24 +0800 Subject: [PATCH] rk2928/rk3026: devices.c: fix gcc error when i2c no selected: implicit declaration of function 'rk30_init_i2c' --- arch/arm/mach-rk2928/devices.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-rk2928/devices.c b/arch/arm/mach-rk2928/devices.c index 4807a39c48b1..31dea85f2fa0 100644 --- 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) /***************************************************************************************** -- 2.34.1