@@ -892,8 +892,8 @@ static struct i2c_board_info hkdk4412_i2c_devs7[] __initdata = {
892892 /* nothing here yet */
893893};
894894
895- // Disable
896- #if 0
895+
896+ #if defined( CONFIG_ODROID_X_LINUX_LEDS )
897897static struct gpio_led hkdk4412_gpio_leds [] = {
898898 {
899899 .name = "led1" , /* D5 on ODROID-X */
@@ -1096,10 +1096,11 @@ static struct platform_device *hkdk4412_devices[] __initdata = {
10961096#endif
10971097 & exynos4_device_ohci ,
10981098 & exynos4_device_dwmci ,
1099+ #if defined(CONFIG_ODROID_X_LINUX_LEDS )
10991100
11001101 // Disable : ADD
1101- // &hkdk4412_leds_gpio,
1102-
1102+ & hkdk4412_leds_gpio ,
1103+ #endif
11031104#if defined(CONFIG_LCD_LP101WH1 )
11041105 & hkdk4412_lcd_lp101wh1 ,
11051106#endif
@@ -1139,7 +1140,7 @@ static struct i2c_board_info hdmiphy_info = {
11391140 I2C_BOARD_INFO ("hdmiphy-exynos4412" , 0x38 ),
11401141};
11411142#endif
1142-
1143+ #if defined( CONFIG_ODROID_X_ANDROID_LEDS )
11431144//------------------ ADD Hardkernel -------------------
11441145#include <linux/hrtimer.h>
11451146#include <linux/slab.h>
@@ -1192,7 +1193,7 @@ static void hkdk4412_led_deinit(void)
11921193}
11931194
11941195//------------------ END Hardkernel -------------------
1195-
1196+ #endif
11961197static void __init hkdk4412_gpio_init (void )
11971198{
11981199 /* Peripheral power enable (P3V3) */
@@ -1221,10 +1222,12 @@ static void hkdk4412_power_off(void)
12211222{
12221223 pr_emerg ("Bye...\n" );
12231224
1225+ #if defined(CONFIG_ODROID_X_ANDROID_LEDS )
1226+
12241227 // ADD Hardkernel
12251228 hkdk4412_led_deinit ();
12261229 // END Hardkernel
1227-
1230+ #endif
12281231 writel (0x5200 , S5P_PS_HOLD_CONTROL );
12291232 while (1 ) {
12301233 pr_emerg ("%s : should not reach here!\n" , __func__ );
@@ -1235,11 +1238,12 @@ static void hkdk4412_power_off(void)
12351238static void __init hkdk4412_machine_init (void )
12361239{
12371240 hkdk4412_gpio_init ();
1241+ #if defined(CONFIG_ODROID_X_ANDROID_LEDS )
12381242
12391243 // ADD Hardkernel
12401244 hkdk4412_led_init ();
12411245 // END Hardkernel
1242-
1246+ #endif
12431247 /* Register power off function */
12441248 pm_power_off = hkdk4412_power_off ;
12451249
0 commit comments