From: 黄涛 Date: Thu, 5 Sep 2013 02:50:24 +0000 (+0800) Subject: rk2928/rk3026: devices.c: fix gcc error when i2c no selected: implicit declaration... X-Git-Tag: firefly_0821_release~6658 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=31726599c4f666c08d0f92d386361f73787cf279;p=firefly-linux-kernel-4.4.55.git rk2928/rk3026: devices.c: fix gcc error when i2c no selected: implicit declaration of function 'rk30_init_i2c' --- 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) /*****************************************************************************************