From patchwork Thu Sep 25 03:14:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wangyijing X-Patchwork-Id: 37904 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 86D9E20063 for ; Thu, 25 Sep 2014 02:55:18 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id c13sf4502228eek.11 for ; Wed, 24 Sep 2014 19:55:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=FlDK1V1c1sbU9r8e69gEhMcyfg59uWkQ++0BPzl5zig=; b=Ya7e9xvoOovLro0rUr3isnOLy9DZDV/os6fx9hcxqTv0sc81e3T7E3lC5RuAVeEvwg vBHQuWBN9x6y1eUhcJw4Whx95uKGvpZ4nbUpvVEI/HpuHJdW9fdUwlnrHLZbRQlMr/1g WM/cTzXO884rpkuTVOuP3OK+g3tXqAKxz4JAIxgWKQV3lXHuJGQTVVUvUpARO/Hw/fA8 VRd7lWm3w/JntY2zQ6podL30Ad+KIraic1nLlxDnPHxGaQQZrZBSYxKgg4sAZQjlvHnr HvPlMLN6AsBl1PKWSN1c0BrnNA4P8sMZQ7OMEDWJLx9c+kVgLRij17+8HYdM6xLx8JBN p7BQ== X-Gm-Message-State: ALoCoQnTBOffqViGbOJbJXb9gkOPy++RN86i8fcejKLVJ4IR2iogJQzi0ZMjtu/rf56Y15YLqdrQ X-Received: by 10.180.109.194 with SMTP id hu2mr2086027wib.1.1411613717459; Wed, 24 Sep 2014 19:55:17 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.76 with SMTP id le12ls217322lac.34.gmail; Wed, 24 Sep 2014 19:55:17 -0700 (PDT) X-Received: by 10.112.147.74 with SMTP id ti10mr9605653lbb.29.1411613717311; Wed, 24 Sep 2014 19:55:17 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) by mx.google.com with ESMTPS id ir4si1017788lac.116.2014.09.24.19.55.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Sep 2014 19:55:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id pn19so11828786lab.36 for ; Wed, 24 Sep 2014 19:55:17 -0700 (PDT) X-Received: by 10.112.48.100 with SMTP id k4mr359910lbn.95.1411613717011; Wed, 24 Sep 2014 19:55:17 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp683521lbb; Wed, 24 Sep 2014 19:55:16 -0700 (PDT) X-Received: by 10.224.136.72 with SMTP id q8mr14862380qat.31.1411613715332; Wed, 24 Sep 2014 19:55:15 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id p20si1095226qay.102.2014.09.24.19.55.14 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 24 Sep 2014 19:55:15 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XWzBM-0004XD-BJ; Thu, 25 Sep 2014 02:53:24 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XWzBK-0004Tq-9y for xen-devel@lists.xenproject.org; Thu, 25 Sep 2014 02:53:22 +0000 Received: from [193.109.254.147:50425] by server-15.bemta-14.messagelabs.com id 74/FD-30948-1A383245; Thu, 25 Sep 2014 02:53:21 +0000 X-Env-Sender: wangyijing@huawei.com X-Msg-Ref: server-10.tower-27.messagelabs.com!1411613597!12864536!1 X-Originating-IP: [119.145.14.65] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTE5LjE0NS4xNC42NSA9PiA3NzQ2Mw==\n X-StarScan-Received: X-StarScan-Version: 6.12.2; banners=-,-,- X-VirusChecked: Checked Received: (qmail 14662 invoked from network); 25 Sep 2014 02:53:20 -0000 Received: from szxga02-in.huawei.com (HELO szxga02-in.huawei.com) (119.145.14.65) by server-10.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 25 Sep 2014 02:53:20 -0000 Received: from 172.24.2.119 (EHLO szxeml409-hub.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id BZX30348; Thu, 25 Sep 2014 10:50:36 +0800 (CST) Received: from localhost.localdomain (10.175.100.166) by szxeml409-hub.china.huawei.com (10.82.67.136) with Microsoft SMTP Server id 14.3.158.1; Thu, 25 Sep 2014 10:50:22 +0800 From: Yijing Wang To: Bjorn Helgaas Date: Thu, 25 Sep 2014 11:14:12 +0800 Message-ID: <1411614872-4009-3-git-send-email-wangyijing@huawei.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1411614872-4009-1-git-send-email-wangyijing@huawei.com> References: <1411614872-4009-1-git-send-email-wangyijing@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.100.166] X-CFilter-Loop: Reflected Cc: linux-mips@linux-mips.org, linux-ia64@vger.kernel.org, linux-pci@vger.kernel.org, Bharat.Bhushan@freescale.com, Yijing Wang , Thierry Reding , sparclinux@vger.kernel.org, linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, Russell King , Michael Ellerman , Joerg Roedel , x86@kernel.org, Sebastian Ott , Benjamin Herrenschmidt , xen-devel@lists.xenproject.org, arnab.basu@freescale.com, Arnd Bergmann , Chris Metcalf , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , Xinwei Hu , Tony Luck , Sergei Shtylyov , linux-kernel@vger.kernel.org, Ralf Baechle , iommu@lists.linux-foundation.org, David Vrabel , Wuyun , linuxppc-dev@lists.ozlabs.org, "David S. Miller" , Lucas Stach Subject: [Xen-devel] [PATCH v2 02/22] PCI/MSI: Remove useless bus->msi assignment X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: wangyijing@huawei.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: Currently, PCI drivers will initialize bus->msi in pcibios_add_bus(). pcibios_add_bus() will be called in every pci bus initialization. So the bus->msi assignment in pci_alloc_child_bus() is useless. Signed-off-by: Yijing Wang CC: Thierry Reding CC: Thomas Petazzoni --- drivers/pci/probe.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index e3cf8a2..8296576 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -677,7 +677,6 @@ static struct pci_bus *pci_alloc_child_bus(struct pci_bus *parent, child->parent = parent; child->ops = parent->ops; - child->msi = parent->msi; child->sysdata = parent->sysdata; child->bus_flags = parent->bus_flags;