From patchwork Tue May 26 07:08:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kenji Kaneshige X-Patchwork-Id: 25935 X-Patchwork-Delegate: jbarnes@virtuousgeek.org 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 n4Q74Mcl021310 for ; Tue, 26 May 2009 07:08:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751207AbZEZHI4 (ORCPT ); Tue, 26 May 2009 03:08:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751300AbZEZHI4 (ORCPT ); Tue, 26 May 2009 03:08:56 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:39815 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751207AbZEZHI4 (ORCPT ); Tue, 26 May 2009 03:08:56 -0400 Received: from m3.gw.fujitsu.co.jp ([10.0.50.73]) by fgwmail5.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id n4Q78vsP028486 for (envelope-from kaneshige.kenji@jp.fujitsu.com); Tue, 26 May 2009 16:08:57 +0900 Received: from smail (m3 [127.0.0.1]) by outgoing.m3.gw.fujitsu.co.jp (Postfix) with ESMTP id A881A45DD78 for ; Tue, 26 May 2009 16:08:56 +0900 (JST) Received: from s3.gw.fujitsu.co.jp (s3.gw.fujitsu.co.jp [10.0.50.93]) by m3.gw.fujitsu.co.jp (Postfix) with ESMTP id A5CAC45DD86 for ; Tue, 26 May 2009 16:08:54 +0900 (JST) Received: from s3.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s3.gw.fujitsu.co.jp (Postfix) with ESMTP id 7BC071DB803F for ; Tue, 26 May 2009 16:08:54 +0900 (JST) Received: from m105.s.css.fujitsu.com (m105.s.css.fujitsu.com [10.249.87.105]) by s3.gw.fujitsu.co.jp (Postfix) with ESMTP id E8EA8E08007 for ; Tue, 26 May 2009 16:08:53 +0900 (JST) Received: from m105.css.fujitsu.com (m105 [127.0.0.1]) by m105.s.css.fujitsu.com (Postfix) with ESMTP id BBD525D8006; Tue, 26 May 2009 16:08:53 +0900 (JST) Received: from [127.0.0.1] (unknown [10.124.100.137]) by m105.s.css.fujitsu.com (Postfix) with ESMTP id 5728A5D8001; Tue, 26 May 2009 16:08:53 +0900 (JST) Message-ID: <4A1B9574.3050403@jp.fujitsu.com> Date: Tue, 26 May 2009 16:08:36 +0900 From: Kenji Kaneshige User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: "linux-pci@vger.kernel.org" , Jesse Barnes Subject: [PATCH 6/6] PCI: use pci_is_root_bus() in pci_common_swizzle() References: <4A1B9460.8040008@jp.fujitsu.com> In-Reply-To: <4A1B9460.8040008@jp.fujitsu.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Use pci_is_root_bus() in pci_common_swizzle() for checking if the pci bus is root, for code consistency. Signed-off-by: Kenji Kaneshige --- drivers/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: 20090526/drivers/pci/pci.c =================================================================== --- 20090526.orig/drivers/pci/pci.c +++ 20090526/drivers/pci/pci.c @@ -1546,7 +1546,7 @@ u8 pci_common_swizzle(struct pci_dev *de { u8 pin = *pinp; - while (dev->bus->parent) { + while (!pci_is_root_bus(dev->bus)) { pin = pci_swizzle_interrupt_pin(dev, pin); dev = dev->bus->self; }