From patchwork Thu Dec 3 17:28:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Patterson X-Patchwork-Id: 64580 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB3HSRBE008291 for ; Thu, 3 Dec 2009 17:28:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755518AbZLCR2U (ORCPT ); Thu, 3 Dec 2009 12:28:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754254AbZLCR2U (ORCPT ); Thu, 3 Dec 2009 12:28:20 -0500 Received: from g4t0014.houston.hp.com ([15.201.24.17]:43578 "EHLO g4t0014.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754513AbZLCR2T (ORCPT ); Thu, 3 Dec 2009 12:28:19 -0500 Received: from g4t0018.houston.hp.com (g4t0018.houston.hp.com [16.234.32.27]) by g4t0014.houston.hp.com (Postfix) with ESMTP id 2DEA5243E1; Thu, 3 Dec 2009 17:28:26 +0000 (UTC) Received: from ldl (linux.corp.hp.com [15.11.146.101]) by g4t0018.houston.hp.com (Postfix) with ESMTP id 1C10C1003C; Thu, 3 Dec 2009 17:28:26 +0000 (UTC) Received: from localhost (ldl.fc.hp.com [127.0.0.1]) by ldl (Postfix) with ESMTP id 0592CCF0018; Thu, 3 Dec 2009 10:28:26 -0700 (MST) Received: from ldl ([127.0.0.1]) by localhost (ldl.fc.hp.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m0pK+O7Mq4+D; Thu, 3 Dec 2009 10:28:25 -0700 (MST) Received: from eh.fc.hp.com (eh.fc.hp.com [15.11.146.105]) by ldl (Postfix) with ESMTP id E459ACF0007; Thu, 3 Dec 2009 10:28:25 -0700 (MST) Received: from bob.kio (localhost [127.0.0.1]) by eh.fc.hp.com (Postfix) with ESMTP id CE55426146; Thu, 3 Dec 2009 10:28:25 -0700 (MST) Subject: [PATCH 2/2] PCI: remove ifdefed pci_cleanup_aer_correct_error_status To: linux-pci@vger.kernel.org From: Andrew Patterson Cc: prarit@redhat.com, jbarnes@virtuousgeek.org Date: Thu, 03 Dec 2009 10:28:25 -0700 Message-ID: <20091203172825.24020.16712.stgit@bob.kio> In-Reply-To: <20091203172815.24020.25978.stgit@bob.kio> References: <20091203172815.24020.25978.stgit@bob.kio> User-Agent: StGit/0.15 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index 271d30c..73f9d07 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c @@ -98,23 +98,6 @@ int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev) } EXPORT_SYMBOL_GPL(pci_cleanup_aer_uncorrect_error_status); -#if 0 -int pci_cleanup_aer_correct_error_status(struct pci_dev *dev) -{ - int pos; - u32 status; - - pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); - if (!pos) - return -EIO; - - pci_read_config_dword(dev, pos + PCI_ERR_COR_STATUS, &status); - pci_write_config_dword(dev, pos + PCI_ERR_COR_STATUS, status); - - return 0; -} -#endif /* 0 */ - static int set_device_error_reporting(struct pci_dev *dev, void *data) { bool enable = *((bool *)data);