]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wilc1000: use wilc instead of wilc_dev and remove wilc_dev
authorGlen Lee <glen.lee@atmel.com>
Wed, 18 Nov 2015 06:11:37 +0000 (15:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Dec 2015 22:30:50 +0000 (14:30 -0800)
This patch changes wilc_dev with wilc in the function call
wilc_wlan_get_num_conn_ifcs, and remove wilc_dev and it's related codes.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_wfi_netdevice.h

index db34048864e66bdc1a011d52f52a9a2a1aeb1dbe..b1b4802fc56ae80979839a6d05f071e97bca00ea 100644 (file)
@@ -2919,7 +2919,7 @@ static int hostIFthread(void *pvArg)
                        del_timer(&hif_drv->scan_timer);
                        PRINT_D(HOSTINF_DBG, "scan completed successfully\n");
 
-                       if (!wilc_wlan_get_num_conn_ifcs(wilc_dev))
+                       if (!wilc_wlan_get_num_conn_ifcs(wilc))
                                wilc_chip_sleep_manually(wilc);
 
                        Handle_ScanDone(msg.drv, SCAN_EVENT_DONE);
index cd471abcedf771bb5d224a1f64550bfc9121333d..73954f468ae8e4a1da48681ac6e682643f666975 100644 (file)
@@ -43,8 +43,6 @@ static int  mac_init_fn(struct net_device *ndev);
 static struct net_device_stats *mac_stats(struct net_device *dev);
 static int  mac_ioctl(struct net_device *ndev, struct ifreq *req, int cmd);
 static void wilc_set_multicast_list(struct net_device *dev);
-struct wilc *wilc_dev;
-EXPORT_SYMBOL_GPL(wilc_dev);
 
 bool wilc_enable_ps = true;
 
@@ -1432,7 +1430,7 @@ int wilc_netdev_init(struct wilc **wilc, struct device *dev, int io_type,
 
        sema_init(&close_exit_sync, 0);
 
-       wl = kzalloc(sizeof(*wilc_dev), GFP_KERNEL);
+       wl = kzalloc(sizeof(*wl), GFP_KERNEL);
        if (!wl)
                return -ENOMEM;
 
@@ -1495,7 +1493,6 @@ int wilc_netdev_init(struct wilc **wilc, struct device *dev, int io_type,
                nic->iftype = STATION_MODE;
                nic->mac_opened = 0;
        }
-       wilc_dev = *wilc = wl;
 
        return 0;
 }
index 4c8de8b19c835cc9b70e3b0856ad84cc8328cf04..212d607748e983d229abc019f5f3899545c89eed 100644 (file)
@@ -205,7 +205,6 @@ struct WILC_WFI_mon_priv {
 
 int wilc1000_wlan_init(struct net_device *dev, perInterface_wlan_t *p_nic);
 
-extern struct wilc *wilc_dev;
 extern struct net_device *WILC_WFI_devs[];
 void wilc_frmw_to_linux(struct wilc *wilc, u8 *buff, u32 size, u32 pkt_offset);
 void wilc_mac_indicate(struct wilc *wilc, int flag);