]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wilc1000: Remove unused function
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Tue, 16 Feb 2016 13:06:00 +0000 (18:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 00:58:06 +0000 (16:58 -0800)
Remove wilc_wlan_global_reset function since it is not used anywhere
in this driver.

This also silences the following sparse warning:
drivers/staging/wilc1000/wilc_wlan.c:1120:6: warning: symbol
'wilc_wlan_global_reset' was not declared. Should it be static?

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wlan.c

index ef65e8ef4b49de165df7d0227a2e42169ba59947..c44b87896d4eaa1bd48aed322a8854f8aabbd991 100644 (file)
@@ -1117,12 +1117,6 @@ int wilc_wlan_start(struct wilc *wilc)
        return (ret < 0) ? ret : 0;
 }
 
-void wilc_wlan_global_reset(struct wilc *wilc)
-{
-       acquire_bus(wilc, ACQUIRE_AND_WAKEUP);
-       wilc->hif_func->hif_write_reg(wilc, WILC_GLB_RESET_0, 0x0);
-       release_bus(wilc, RELEASE_ONLY);
-}
 int wilc_wlan_stop(struct wilc *wilc)
 {
        u32 reg = 0;