From patchwork Mon Nov 27 16:58:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 10077683 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 4DD1160353 for ; Mon, 27 Nov 2017 17:36:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36BE328F2D for ; Mon, 27 Nov 2017 17:36:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B71F28F33; Mon, 27 Nov 2017 17:36:57 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 91D7828F26 for ; Mon, 27 Nov 2017 17:36:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=0/y1xKEXNR9mvrYYRk6mgGBurwghbTpWqA83NTUtiC8=; b=GL61PdE3UKqdRnAQb0A3DhBaHz Fn9YY2XBhC383Rll05o3ZGUm1S0O37o14HuBN5FW/IlZcVCuUB0dgJ/WQVQWW0SabbW+POacC5xBQ 5US7JwnpG34REaRrnRBGyFlYNswomLjTMr1AQ6QLNdKL/j9aoLDgQERmCb1AaJgBc3KPxIeUZT+I9 BBmbKvFvFAFJCHH/a9HuP8slcxwwBm7weEnT313G0P0yUGg98BY/lNVugsrCpLMJtMFySEujCckt+ xswTG5ESOica8sgGBp137EHXZPOpB1MHS4G75kfKmK0xs5R7dZMKfAJGBUKjpKwLLUYXn25ViQVrv KZFuUw5g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eJNKp-0004MQ-SH; Mon, 27 Nov 2017 17:36:47 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eJNIw-0001Bh-0m for linux-arm-kernel@bombadil.infradead.org; Mon, 27 Nov 2017 17:34:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Bf8G1PNuBptshXYAqFYzbGmBWGaa7cFi58dvi0Zb65U=; b=Sy/K9jx7GbebQkh9sR1KX1qsC A5+NUsktJ+o3OrguouwEe5FGvxCN3ER/IRm1N4uIjYWoFRFrzioUdGHiI32GEHNErrGBpdb8jf11Q vGwm6ziX502wde8WvUUJxF6rDlh1a4bPgRD1/oofhx664Y+98HWPBzqrEkqXtc0SQanyV3UqJuOv7 Bl+pmGYB4FSE9juUYwf15PvAhEo4h8+MqPZfVs9WXW0b7MHyHZ+0njwN7aMCxEPJlIVfTVUItMGX5 zO1g8OgqCxpkIgZjhE2MBgg8B8xmQSCHDSLObJfO7O8MoUcKYrXsuulWHsbyEqmx+MCAT3t+ogDCg Z2HIoDhpg==; Received: from smtp.codeaurora.org ([198.145.29.96]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eJMlR-0003Uz-KF for linux-arm-kernel@lists.infradead.org; Mon, 27 Nov 2017 17:00:15 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6DBD16793C; Mon, 27 Nov 2017 16:59:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1511801992; bh=2jDl2tD4W6dhjAUh2R37uv6S2lZCkL2CbyzcQB8t5As=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YlkkU5f6xDubDr0/etB+vjlLaxIgaEVOxh7KJ+GK5MOO2kjAjogOCyuzkit79GeOS 9v2Qd3ZK8gKrwGZvFtp6CYHbdZYh25KNcKeVQjKXuQyMA5FL20PktIOBX6lV0umtAQ /mCZ+OmEP9/VvaHRsunuc0S1lgj4BeNurLAbav+g= Received: from drakthul.qualcomm.com (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id F26A66A65E; Mon, 27 Nov 2017 16:59:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1511801969; bh=2jDl2tD4W6dhjAUh2R37uv6S2lZCkL2CbyzcQB8t5As=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MqLUhvZ2fjKrXOA7PjfWSKM1MJccz0BXF0QjEuZ0jz2S1YKRCSVJxy8SF6fJ9gNpS 5SoruUW4BJaH6F/ZcD0ZQDKMSUDKkDL9YS8lnTB8+eeU8nKv0VrwHwz+bGf2yghTb2 mTS/aW5guwtA6fPlNUwlWS7Ujr5DbWZUVQJN//YI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org F26A66A65E Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org From: Sinan Kaya To: linux-pci@vger.kernel.org, timur@codeaurora.org Subject: [PATCH V3 23/29] staging: rts5208: remove rtsx_read_pci_cfg_byte() Date: Mon, 27 Nov 2017 11:58:00 -0500 Message-Id: <1511801886-6753-24-git-send-email-okaya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1511801886-6753-1-git-send-email-okaya@codeaurora.org> References: <1511801886-6753-1-git-send-email-okaya@codeaurora.org> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:STAGING SUBSYSTEM" , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, intel-gfx@lists.freedesktop.org, Gaurav Pathak , open list , Sinan Kaya , Hannes Reinecke , Johannes Thumshirn , Colin Ian King , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Remove unused rtsx_read_pci_cfg_byte() function. Signed-off-by: Sinan Kaya --- drivers/staging/rts5208/rtsx.c | 17 ----------------- drivers/staging/rts5208/rtsx.h | 2 -- 2 files changed, 19 deletions(-) diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c index 89e2cfe..70e0b86 100644 --- a/drivers/staging/rts5208/rtsx.c +++ b/drivers/staging/rts5208/rtsx.c @@ -275,23 +275,6 @@ static int rtsx_acquire_irq(struct rtsx_dev *dev) return 0; } -int rtsx_read_pci_cfg_byte(u8 bus, u8 dev, u8 func, u8 offset, u8 *val) -{ - struct pci_dev *pdev; - u8 data; - u8 devfn = (dev << 3) | func; - - pdev = pci_get_bus_and_slot(bus, devfn); - if (!pdev) - return -1; - - pci_read_config_byte(pdev, offset, &data); - if (val) - *val = data; - - return 0; -} - #ifdef CONFIG_PM /* * power management diff --git a/drivers/staging/rts5208/rtsx.h b/drivers/staging/rts5208/rtsx.h index 575e573..62e467c 100644 --- a/drivers/staging/rts5208/rtsx.h +++ b/drivers/staging/rts5208/rtsx.h @@ -174,8 +174,6 @@ static inline void get_current_time(u8 *timeval_buf, int buf_len) /* struct scsi_cmnd transfer buffer access utilities */ enum xfer_buf_dir {TO_XFER_BUF, FROM_XFER_BUF}; -int rtsx_read_pci_cfg_byte(u8 bus, u8 dev, u8 func, u8 offset, u8 *val); - #define _MSG_TRACE #include "trace.h"