From patchwork Sat Sep 12 18:10:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 7167131 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1B9E3BEEC1 for ; Sat, 12 Sep 2015 18:11:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 43164206F7 for ; Sat, 12 Sep 2015 18:11:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 55BEE20723 for ; Sat, 12 Sep 2015 18:11:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754629AbbILSL3 (ORCPT ); Sat, 12 Sep 2015 14:11:29 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:33551 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753605AbbILSLM (ORCPT ); Sat, 12 Sep 2015 14:11:12 -0400 Received: by wiclk2 with SMTP id lk2so96488439wic.0 for ; Sat, 12 Sep 2015 11:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vL2Kk/FWU2mg66N6zpoFwwLueDI3kSCHYbWDN4RtJOU=; b=W4LNbu9j9HD1trDalDBNgYL1K8JHlNbFrs9YqPdYH98k4jCvK58bIdvpckdoNZrzkc 2x7V2vcQ8u5BQi4u3Bi32558GxBF9q0CMBF/LOC2fpcx3NZgVT76Ul9L4fYZ7XrDuBCn Qeewta3cxz1fnDk1lDIG8/t48HP07MISI9HH0l1U4xL/W4HroGZ4qdOrhMfwrmB5IGUO pp5YbR6kHyu44TSc/qwD7NBqxiPY03a3uf2fJpbPwDCbUZlj8lToPiUgTOHw3S7VU2qQ m2TlbnHpEH9Wwf1u0f4su0grRVniRH/wxyzdTZVkmlbOrJTDReWmNNeKbjznghb7Gp3V lcWQ== X-Received: by 10.194.85.114 with SMTP id g18mr9949364wjz.68.1442081471179; Sat, 12 Sep 2015 11:11:11 -0700 (PDT) Received: from tipsey.3.home (188.31.129.159.threembb.co.uk. [188.31.129.159]) by smtp.gmail.com with ESMTPSA id c3sm6628188wja.3.2015.09.12.11.11.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 12 Sep 2015 11:11:10 -0700 (PDT) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 07/11] staging: vt6655: device_get_pci_info remove unused pci_read_config_* Date: Sat, 12 Sep 2015 19:10:34 +0100 Message-Id: <1442081438-3485-7-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1442081438-3485-1-git-send-email-tvboxspy@gmail.com> References: <1442081438-3485-1-git-send-email-tvboxspy@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP These values are read from pci but never used. Removing variables byRevId, SubSystemID, SubVendorID and pci_cmd. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/device.h | 3 --- drivers/staging/vt6655/device_main.c | 9 --------- 2 files changed, 12 deletions(-) diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h index f020bb1..271a719 100644 --- a/drivers/staging/vt6655/device.h +++ b/drivers/staging/vt6655/device.h @@ -231,10 +231,7 @@ struct vnt_private { u32 memaddr; u32 ioaddr; - unsigned char byRevId; unsigned char byRxMode; - unsigned short SubSystemID; - unsigned short SubVendorID; spinlock_t lock; diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index ce2df37..1e660cc 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -230,9 +230,6 @@ static void device_init_registers(struct vnt_private *pDevice) pDevice->byTopOFDMBasicRate = RATE_24M; pDevice->byTopCCKBasicRate = RATE_1M; - /* Target to IF pin while programming to RF chip. */ - pDevice->byRevId = 0; - /* init MAC */ MACvInitialize(pDevice->PortOffset); @@ -436,15 +433,9 @@ static void device_print_info(struct vnt_private *pDevice) static bool device_get_pci_info(struct vnt_private *pDevice, struct pci_dev *pcid) { - u16 pci_cmd; u8 b; unsigned int cis_addr; - pci_read_config_byte(pcid, PCI_REVISION_ID, &pDevice->byRevId); - pci_read_config_word(pcid, PCI_SUBSYSTEM_ID, &pDevice->SubSystemID); - pci_read_config_word(pcid, PCI_SUBSYSTEM_VENDOR_ID, &pDevice->SubVendorID); - pci_read_config_word(pcid, PCI_COMMAND, (u16 *)&(pci_cmd)); - pci_set_master(pcid); pDevice->memaddr = pci_resource_start(pcid, 0);