From patchwork Sat Sep 12 18:10:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 7167061 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 E43B2BEEC1 for ; Sat, 12 Sep 2015 18:11:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 05EAE2072E for ; Sat, 12 Sep 2015 18:11:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0224B206F7 for ; Sat, 12 Sep 2015 18:11:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753066AbbILSLJ (ORCPT ); Sat, 12 Sep 2015 14:11:09 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:38640 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751377AbbILSLH (ORCPT ); Sat, 12 Sep 2015 14:11:07 -0400 Received: by wiclk2 with SMTP id lk2so89646947wic.1 for ; Sat, 12 Sep 2015 11:11:04 -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; bh=7zwFU1aYl342A1cUOQJXKkV3ivWH03kyQOcqvtr2PlI=; b=BETtHq3YV1VfYRnXEmMbxQpD/8eT7Q7wRLT4fDtFPnrcbUQkOTfGdhBJ+OfQ1al/fV WBQTxNe8LJkNTFm84LEEh1lZAds8NMaaEUgGdiO8ZIJs3+lO+bCxPV4RKGJbNLqN6eb/ DialVNtQ8B+c5i3QEMo9PWSb5yYeXBUYWileXQzAwb+mrGa3XdSBRtFthkbA4p8/BGru 4VdOUxJLAPzeo/FmFDhKnJthfA2w/DGeASIFsnrPZ0NRCHVjJathh+vRz6N9zJxnqwvG 0OKhj04DCbU7jau3ijozbR4ExUSRVi00NckBeeRTITL6mP897RNgMXUgBPT2c7lbaW59 X5IQ== X-Received: by 10.194.121.131 with SMTP id lk3mr9564298wjb.77.1442081463635; Sat, 12 Sep 2015 11:11:03 -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.10.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 12 Sep 2015 11:11:02 -0700 (PDT) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 01/11] staging: vt6655: vt6655_probe remove PCI debug info Date: Sat, 12 Sep 2015 19:10:28 +0100 Message-Id: <1442081438-3485-1-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.5.0 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 Remove unnecessary debug PCI info that can be obtained by lspci. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/device_main.c | 46 ------------------------------------ 1 file changed, 46 deletions(-) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 86c24a1..2584d17 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -1692,52 +1692,6 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent) return -ENODEV; } -#ifdef DEBUG - dev_dbg(&pcid->dev, - "after get pci_info memaddr is %x, io addr is %x,io_size is %d\n", - priv->memaddr, priv->ioaddr, priv->io_size); - { - int i; - u32 bar, len; - u32 address[] = { - PCI_BASE_ADDRESS_0, - PCI_BASE_ADDRESS_1, - PCI_BASE_ADDRESS_2, - PCI_BASE_ADDRESS_3, - PCI_BASE_ADDRESS_4, - PCI_BASE_ADDRESS_5, - 0}; - for (i = 0; address[i]; i++) { - pci_read_config_dword(pcid, address[i], &bar); - - dev_dbg(&pcid->dev, "bar %d is %x\n", i, bar); - - if (!bar) { - dev_dbg(&pcid->dev, - "bar %d not implemented\n", i); - continue; - } - - if (bar & PCI_BASE_ADDRESS_SPACE_IO) { - /* This is IO */ - - len = bar & (PCI_BASE_ADDRESS_IO_MASK & 0xffff); - len = len & ~(len - 1); - - dev_dbg(&pcid->dev, - "IO space: len in IO %x, BAR %d\n", - len, i); - } else { - len = bar & 0xfffffff0; - len = ~len + 1; - - dev_dbg(&pcid->dev, - "len in MEM %x, BAR %d\n", len, i); - } - } - } -#endif - priv->PortOffset = ioremap(priv->memaddr & PCI_BASE_ADDRESS_MEM_MASK, priv->io_size); if (!priv->PortOffset) {