From patchwork Sat Aug 25 10:40:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10576083 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0339914BD for ; Sat, 25 Aug 2018 10:41:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7B6C2AE30 for ; Sat, 25 Aug 2018 10:41:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC12D2AF1F; Sat, 25 Aug 2018 10:41:18 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham 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 29F662AE30 for ; Sat, 25 Aug 2018 10:41:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727091AbeHYOTv (ORCPT ); Sat, 25 Aug 2018 10:19:51 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:51279 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726624AbeHYOTu (ORCPT ); Sat, 25 Aug 2018 10:19:50 -0400 Received: by mail-wm0-f67.google.com with SMTP id y2-v6so3714288wma.1 for ; Sat, 25 Aug 2018 03:41:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cNIACiowubO73QaLozFJBKec/NjTCfONj0thNTjBbyg=; b=qC/1+wKxLdjU/a8j1Xm+U8fGRWan5Lecuivs5PgzZ195p2FBsCeaTW0OOGxQR8zay1 0/XvA7uddAWlbguoLNl5voIpeGnG8IJPdHfxw6RZaU84zS+jravZ7AdNWneNppuvelZP Q7z2BbOmBsUtjisaXQRBhUqof47ZsqUDeUofzWBgx2YJf2WFnGiXRmu0KJUobHXkQkgQ S2rmzCyHRfKajBJIbvD/67aarzFf+pM6lXExob7EnsTKvCH/7lf1Cw4KRJSpA8a5UpKU QTk+7T7HddXnkbWA40lsiQX9DVs8UBtj5+QAHjOyQHkacvlJ5cQQfkcjZGgz9Aiuu/Wu UxfA== X-Gm-Message-State: APzg51Dg7I1855bDYGeJxSM6jtr5dYvTqndQhK+ZVsyng2LsNyR4h/cR J9vdWr3qcVbl6XLp9dCZCkRdJg== X-Google-Smtp-Source: ANB0VdbnybUYWTbWMskQSsAloQCIpauS70qBU21pCpJZtIS59aMepTP8/7ZdXkGJTgVIkF0vyNudpQ== X-Received: by 2002:a1c:cf08:: with SMTP id f8-v6mr941751wmg.27.1535193674888; Sat, 25 Aug 2018 03:41:14 -0700 (PDT) Received: from localhost.localdomain ([151.66.53.29]) by smtp.gmail.com with ESMTPSA id l18-v6sm16391708wru.75.2018.08.25.03.41.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Aug 2018 03:41:14 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: sgruszka@redhat.com, linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 12/16] mt76x0: remove unused mt76x0_wait_asic_ready routine Date: Sat, 25 Aug 2018 12:40:52 +0200 Message-Id: <20180825104056.9130-13-lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.18.0 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 Delete core.c source file since, removing mt76x0_wait_asic_ready routine, it is no longer needed Signed-off-by: Lorenzo Bianconi --- .../wireless/mediatek/mt76/mt76x0/Makefile | 2 +- .../net/wireless/mediatek/mt76/mt76x0/core.c | 34 ------------------- 2 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 drivers/net/wireless/mediatek/mt76/mt76x0/core.c diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/Makefile b/drivers/net/wireless/mediatek/mt76/mt76x0/Makefile index 7843908261ba..2f1721263aa5 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/Makefile +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/Makefile @@ -2,6 +2,6 @@ obj-$(CONFIG_MT76x0U) += mt76x0.o mt76x0-objs = \ usb.o init.o main.o mcu.o trace.o dma.o eeprom.o phy.o \ - mac.o util.o debugfs.o tx.o core.o + mac.o util.o debugfs.o tx.o # ccflags-y := -DDEBUG CFLAGS_trace.o := -I$(src) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/core.c b/drivers/net/wireless/mediatek/mt76/mt76x0/core.c deleted file mode 100644 index 892803fce842..000000000000 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/core.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2014 Felix Fietkau - * Copyright (C) 2015 Jakub Kicinski - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 - * as published by the Free Software Foundation - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -#include "mt76x0.h" - -int mt76x0_wait_asic_ready(struct mt76x0_dev *dev) -{ - int i = 100; - u32 val; - - do { - if (test_bit(MT76_REMOVED, &dev->mt76.state)) - return -EIO; - - val = mt76_rr(dev, MT_MAC_CSR0); - if (val && ~val) - return 0; - - udelay(10); - } while (i--); - - return -EIO; -}