From patchwork Tue May 14 16:51:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Liu X-Patchwork-Id: 2567751 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 09270E00E5 for ; Tue, 14 May 2013 16:53:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757674Ab3ENQwc (ORCPT ); Tue, 14 May 2013 12:52:32 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:43397 "EHLO mail-pb0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757437Ab3ENQwa (ORCPT ); Tue, 14 May 2013 12:52:30 -0400 Received: by mail-pb0-f41.google.com with SMTP id xb12so593230pbc.14 for ; Tue, 14 May 2013 09:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=5KdsmqWGZcempBQYHJTX4OyrNB2AsB8dh1J6BIxAEtw=; b=MBAZn9uWJu4KNDmlPE3yiD9wBapHAvBuSpJTBP67zf6MdG4MwqpP9bKsr5z/CHFmwM P3dG38NH4AbAZCupaptNM7tzZ3E3CfglfPM4Il/gX7VC49JyhXOz20RJ4q5HiK2VMoql 4SjM/HuRM+I2XDgbBhUYStk8tGsamVk9RvVIU1DHrEzlRLSLy1MljO8LLmLOvfiGPcfn 68o+T/bQtK6T0TRAHSR/R8OdA0RMYXv/ukfQTuPfc1FkW7Mqnvb24cRxZuJDKn/xVxpa OlOgTd516YG/WxmWHpYCt2d1pMKamvZYOnC3sA8dmwvCuim3ZKDEF7uFxm0izQuRhNOU hS8A== X-Received: by 10.68.17.8 with SMTP id k8mr35385334pbd.102.1368550350012; Tue, 14 May 2013 09:52:30 -0700 (PDT) Received: from localhost.localdomain ([120.196.98.100]) by mx.google.com with ESMTPSA id v5sm18919924pbz.4.2013.05.14.09.52.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 May 2013 09:52:29 -0700 (PDT) From: Jiang Liu To: Bjorn Helgaas , Yinghai Lu Cc: Jiang Liu , "Rafael J . Wysocki" , Greg Kroah-Hartman , Gu Zheng , Toshi Kani , Myron Stowe , Yijing Wang , Jiang Liu , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH v2, part 2 04/18] PCI, Alpha: use hotplug-safe iterators to walk PCI buses Date: Wed, 15 May 2013 00:51:48 +0800 Message-Id: <1368550322-1045-4-git-send-email-jiang.liu@huawei.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1368550322-1045-1-git-send-email-jiang.liu@huawei.com> References: <1368550322-1045-1-git-send-email-jiang.liu@huawei.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Enhance Alpha architecture specific code to use hotplug-safe iterators to walk PCI buses. Signed-off-by: Jiang Liu --- arch/alpha/kernel/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c index edb4e00..094cd58 100644 --- a/arch/alpha/kernel/pci.c +++ b/arch/alpha/kernel/pci.c @@ -305,7 +305,7 @@ pcibios_claim_console_setup(void) { struct pci_bus *b; - list_for_each_entry(b, &pci_root_buses, node) + for_each_pci_root_bus(b) pcibios_claim_one_bus(b); }