modify rk29sdk_wifi_bt_gpio_control_init control bug
authorhwg <hwg@rock-chips.com>
Fri, 16 Nov 2012 08:06:57 +0000 (16:06 +0800)
committerhwg <hwg@rock-chips.com>
Fri, 16 Nov 2012 08:07:06 +0000 (16:07 +0800)
arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c

index af73f9a1c88855fa9ec51c42b72c722d6953d26b..eaa3484f0cbea9a0d77d86c49e70de0a46ca3c17 100755 (executable)
@@ -361,12 +361,13 @@ static int rk29sdk_wifi_status_register(void (*callback)(int card_present, void
 #if defined(CONFIG_RTL8192CU) || defined(CONFIG_RTL8188EU) || defined(CONFIG_RT5370)
 static int __init rk29sdk_wifi_bt_gpio_control_init(void)
 {
+#if defined(CONFIG_USB_WIFI_POWER_CONTROLED_BY_GPIO)
     if (gpio_request(RK30SDK_WIFI_GPIO_POWER_N, "wifi_power")) {
            pr_info("%s: request wifi power gpio failed\n", __func__);
            return -1;
     }
     gpio_direction_output(RK30SDK_WIFI_GPIO_POWER_N, !RK30SDK_WIFI_GPIO_POWER_ENABLE_VALUE);
-
+#endif
     pr_info("%s: init finished\n",__func__);
     return 0;
 }