From patchwork Sun May 26 15:53:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Liu X-Patchwork-Id: 246429 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 543372C0084 for ; Mon, 27 May 2013 02:02:15 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753526Ab3EZQBz (ORCPT ); Sun, 26 May 2013 12:01:55 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:35911 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754187Ab3EZP5f (ORCPT ); Sun, 26 May 2013 11:57:35 -0400 Received: by mail-pa0-f54.google.com with SMTP id kx1so6030566pab.13 for ; Sun, 26 May 2013 08:57:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=h1I31wETswUoXtWIyRRpXgTWsJnaPFJtEiqitC2LKDU=; b=oOx/GsnpGcwtb4suHT53rZjFkkVJlHi3MZpk0ZnUKxvN4AjLNr8ZwgGPGyqWVJ8pil /8PQljzct5zm/O7Hoz2HYKEEDKm/pKoWT+El7EJpm1evEc4D/HPQI3T4KkrVw7d5Zbhq DjoCNJMkh7DpuBSN/zZ+/zsZ4qtL0JmuwnzGcnOov6TkXPQx4BRjCaGh5cnNMMJcyTBk EYBnNkVoaJncnQ5nGzKzUUaxZg1qZ1wLdYHRD0fUsnv/CatT80EIStut97sa7vvs93FN 844IIdqOEeEWQuNUkfRhv2q5pOVz1qdwcuwUu8W+o3naLDUjyV/xV0IZ4DtKnAiuV+OO 6X7Q== X-Received: by 10.66.134.41 with SMTP id ph9mr16289118pab.150.1369583854703; Sun, 26 May 2013 08:57:34 -0700 (PDT) Received: from localhost.localdomain ([111.196.197.202]) by mx.google.com with ESMTPSA id ze11sm26603189pab.22.2013.05.26.08.57.27 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 May 2013 08:57:33 -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, Richard Henderson , Ivan Kokshaysky , Matt Turner , Thierry Reding , linux-alpha@vger.kernel.org Subject: [PATCH v3, part2 05/20] PCI, Alpha: use hotplug-safe iterators to walk PCI buses Date: Sun, 26 May 2013 23:53:02 +0800 Message-Id: <1369583597-3801-6-git-send-email-jiang.liu@huawei.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1369583597-3801-1-git-send-email-jiang.liu@huawei.com> References: <1369583597-3801-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 Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: Greg Kroah-Hartman Cc: Thierry Reding Cc: linux-alpha@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- 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); }