Commit 682d7c95 authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: linux_wlan: remove unused define CUSTOMER_PLATFORM

This patch remove unused define CUSTOMER_PLATFORM from linux_wlan.c.
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3a147c07
...@@ -31,18 +31,11 @@ ...@@ -31,18 +31,11 @@
#include "linux_wlan_spi.h" #include "linux_wlan_spi.h"
#endif #endif
#if defined(CUSTOMER_PLATFORM)
/*
TODO : Write power control functions as customer platform.
*/
#else
#define _linux_wlan_device_power_on() {} #define _linux_wlan_device_power_on() {}
#define _linux_wlan_device_power_off() {} #define _linux_wlan_device_power_off() {}
#define _linux_wlan_device_detection() {} #define _linux_wlan_device_detection() {}
#define _linux_wlan_device_removal() {} #define _linux_wlan_device_removal() {}
#endif
extern bool g_obtainingIP; extern bool g_obtainingIP;
extern void resolve_disconnect_aberration(void *drvHandler); extern void resolve_disconnect_aberration(void *drvHandler);
...@@ -278,15 +271,7 @@ static int init_irq(struct net_device *dev) ...@@ -278,15 +271,7 @@ static int init_irq(struct net_device *dev)
/*GPIO request*/ /*GPIO request*/
if ((gpio_request(GPIO_NUM, "WILC_INTR") == 0) && if ((gpio_request(GPIO_NUM, "WILC_INTR") == 0) &&
(gpio_direction_input(GPIO_NUM) == 0)) { (gpio_direction_input(GPIO_NUM) == 0)) {
#if defined(CUSTOMER_PLATFORM)
/*
TODO : save the registerd irq number to the private wilc context in kernel.
*
* ex) nic->dev_irq_num = gpio_to_irq(GPIO_NUM);
*/
#else
wl->dev_irq_num = gpio_to_irq(GPIO_NUM); wl->dev_irq_num = gpio_to_irq(GPIO_NUM);
#endif
} else { } else {
ret = -1; ret = -1;
PRINT_ER("could not obtain gpio for WILC_INTR\n"); PRINT_ER("could not obtain gpio for WILC_INTR\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment