mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
rk2928/rk3026: devices.c: fix gcc error when i2c no selected: implicit declaration of function 'rk30_init_i2c'
This commit is contained in:
@@ -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)
|
||||
/*****************************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user