Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935363AbcJTIys (ORCPT ); Thu, 20 Oct 2016 04:54:48 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:32821 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935266AbcJTIyp (ORCPT ); Thu, 20 Oct 2016 04:54:45 -0400 From: Binoy Jayan To: Greg Kroah-Hartman , Aditya Shankar , Ganesh Krishna Cc: Arnd Bergmann , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Binoy Jayan Subject: [PATCH] staging: wilc1000: Remove unused function wilc_lock_timeout Date: Thu, 20 Oct 2016 14:24:32 +0530 Message-Id: <1476953672-2198-1-git-send-email-binoy.jayan@linaro.org> X-Mailer: git-send-email 1.8.2.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1150 Lines: 38 Semaphore are going away in the future, so remove the unused function wilc_lock_timeout which calls a semaphore api but has no users. Signed-off-by: Binoy Jayan --- They following is a patch which removes semaphores from wilc1000. Its part of a bigger effort to eliminate all semaphores from the linux kernel. drivers/staging/wilc1000/linux_wlan.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index 6370a5e..470d59f 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -218,17 +218,6 @@ static void deinit_irq(struct net_device *dev) } } -int wilc_lock_timeout(struct wilc *nic, void *vp, u32 timeout) -{ - /* FIXME: replace with mutex_lock or wait_for_completion */ - int error = -1; - - if (vp) - error = down_timeout(vp, - msecs_to_jiffies(timeout)); - return error; -} - void wilc_mac_indicate(struct wilc *wilc, int flag) { int status; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project