From patchwork Thu Oct 20 08:54:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Binoy Jayan X-Patchwork-Id: 9386313 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D3358607F0 for ; Thu, 20 Oct 2016 08:54:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3D2A292A5 for ; Thu, 20 Oct 2016 08:54:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B89B7293E7; Thu, 20 Oct 2016 08:54:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2780529A5E for ; Thu, 20 Oct 2016 08:54:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935284AbcJTIyn (ORCPT ); Thu, 20 Oct 2016 04:54:43 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:32821 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935266AbcJTIyk (ORCPT ); Thu, 20 Oct 2016 04:54:40 -0400 Received: by mail-pf0-f178.google.com with SMTP id 128so32714773pfz.0 for ; Thu, 20 Oct 2016 01:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=JGk+FzRMjJVGK5LB58CDkor0NIAiYhhJG9s5ppEBaqU=; b=FwUIqtOxcFYSBcXZPN33ERn2LqyEebaIwr+dvCf2JA2rOn4xIJjSdMkHW+POO+2bmi TR39b4tIvvbRdgwhpELTzjRjx7ZaLE6JdZHL43Hs2pQCLb0dlQpXJtLh0QLV9FdX8S22 6S1xFul0abHdvBZq5avTrW8jX9AVFMD/zqWRk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=JGk+FzRMjJVGK5LB58CDkor0NIAiYhhJG9s5ppEBaqU=; b=eLCKBWZt8793BX/gHg9tOYySa4zrpYTDeAt5JFARp2SbxV7w6kdbOHB1TH3FrzO69d Xp0tVDT8A48hlRTynBlpf3CsOxGuC6HK1YSTylJpa6gfwmV1jmVHj0KVxoEgG3EeT9pu 5N4AZMwcckOJ2NPAPvk+CIJl0B2Yzyn+xSZ273y6DddduY92CRUVyS+9BkfRiNkoEU2o RuSL+bmlXSVy5J/Z7sbb6iMxYoEXvWVcuLg7XwJrh5LvhoLe2ZGiaPIqANJhUpu79/Jv 2DOisIeIGBcoxvIynoANDZ5mm1nCUSy5HX4yX+gjQll7WpMLbBG4u6JgLRG92iZeO4GM kyFQ== X-Gm-Message-State: AA6/9RlkWDsWwPdmOX1Ye/JQDCc84SuwOqBeQoV5yxVSQuFgjXEscZfyKQ31V8je/e2Wgbgw X-Received: by 10.98.202.156 with SMTP id y28mr19605389pfk.130.1476953679396; Thu, 20 Oct 2016 01:54:39 -0700 (PDT) Received: from blr-ubuntu-59.ap.qualcomm.com ([202.46.23.61]) by smtp.gmail.com with ESMTPSA id dh9sm11613946pac.14.2016.10.20.01.54.36 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Oct 2016 01:54:38 -0700 (PDT) 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-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Arnd Bergmann --- 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;