From patchwork Mon Feb 11 23:00:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 2126331 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id E59413FD56 for ; Mon, 11 Feb 2013 23:01:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758423Ab3BKXBA (ORCPT ); Mon, 11 Feb 2013 18:01:00 -0500 Received: from g1t0029.austin.hp.com ([15.216.28.36]:14677 "EHLO g1t0029.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758156Ab3BKXBA (ORCPT ); Mon, 11 Feb 2013 18:01:00 -0500 Received: from g1t0039.austin.hp.com (g1t0039.austin.hp.com [16.236.32.45]) by g1t0029.austin.hp.com (Postfix) with ESMTP id 6702538139; Mon, 11 Feb 2013 23:00:59 +0000 (UTC) Received: from [10.152.1.34] (swa01cs003-da01.atlanta.hp.com [16.114.29.153]) by g1t0039.austin.hp.com (Postfix) with ESMTP id B853A34180; Mon, 11 Feb 2013 23:00:56 +0000 (UTC) Message-ID: <1360623655.2950.66.camel@lorien2> Subject: [PATCH 2/4] pci/aer: Remove local PCI_BUS() define and use PCI_BUS() from pci From: Shuah Khan Reply-To: shuah.khan@hp.com To: Joerg Roedel , bhelgaas@google.com Cc: dhowells@redhat.com, davej@redhat.com, tglx@linutronix.de, mtk.manpages@gmail.com, iommu@lists.linux-foundation.org, LKML , linux-pci@vger.kernel.org, shemminger@vyatta.com, jiang.liu@huawei.com, linasvepstas@gmail.com, paulmck@linux.vnet.ibm.com, wangyijing@huawei.com, shuahkhan@gmail.com Date: Mon, 11 Feb 2013 16:00:55 -0700 Organization: ISS-Linux X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Change to remove local PCI_BUS() define and use the new PCI_BUS interface from pci. Signed-off-by: Shuah Khan --- drivers/pci/pcie/aer/aerdrv_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index 564d97f..69e406e 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c @@ -89,8 +89,6 @@ static int add_error_device(struct aer_err_info *e_info, struct pci_dev *dev) return -ENOSPC; } -#define PCI_BUS(x) (((x) >> 8) & 0xff) - /** * is_error_source - check whether the device is source of reported error * @dev: pointer to pci_dev to be checked