diff options
author | Ajay Singh <ajay.kathat@microchip.com> | 2019-02-05 07:15:54 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-07 13:31:20 +0100 |
commit | 98f83d3d01eb68e32e7b0de48aee8b19145a9d1b (patch) | |
tree | a8cf1221797432470a36624d03ae576d49acbb65 /drivers/staging/wilc1000/wilc_wfi_netdevice.h | |
parent | staging: wilc1000: remove unused struct 'add_sta_param' (diff) | |
download | linux-dev-98f83d3d01eb68e32e7b0de48aee8b19145a9d1b.tar.xz linux-dev-98f83d3d01eb68e32e7b0de48aee8b19145a9d1b.zip |
staging: wilc1000: avoid use of 'hif_deinit_lock' static variable
Avoid use of static variable 'hif_deinit_lock' and move it as part of
wilc struct.
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/staging/wilc1000/wilc_wfi_netdevice.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h b/drivers/staging/wilc1000/wilc_wfi_netdevice.h index a06b0c019388..3a78ffd217bb 100644 --- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h +++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.h @@ -271,6 +271,8 @@ struct wilc { struct wilc_cfg cfg; void *bus_data; struct net_device *monitor_dev; + /* deinit lock */ + struct mutex deinit_lock; }; struct wilc_wfi_mon_priv { |