From 933dbc4f6bf523ccfb309f6e0be4c1b1624b0045 Mon Sep 17 00:00:00 2001 From: hwg Date: Fri, 16 Nov 2012 16:06:57 +0800 Subject: [PATCH] modify rk29sdk_wifi_bt_gpio_control_init control bug --- arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c b/arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c index af73f9a1c888..eaa3484f0cbe 100755 --- a/arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c +++ b/arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c @@ -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; } -- 2.34.1