From patchwork Sat Jul 3 16:04:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kulikov Vasiliy X-Patchwork-Id: 110033 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o63G68PU021609 for ; Sat, 3 Jul 2010 16:06:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755783Ab0GCQEd (ORCPT ); Sat, 3 Jul 2010 12:04:33 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:59513 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755742Ab0GCQEb (ORCPT ); Sat, 3 Jul 2010 12:04:31 -0400 Received: by wyf23 with SMTP id 23so1621437wyf.19 for ; Sat, 03 Jul 2010 09:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=Q7dQLnk61xP19QrFTNXKTyhQqudMi7XWE5zO7rAVL+E=; b=c4ceahkYgmzZq9BeUxUxfOFckb//oHzmwkf6wXqn1E3PO1ItgPIU2xVFzN+pXI1YW9 j36HTBLFUdRD5lqR93tIhGJHukIRxSdTGKpwASX4AIBA/bBlnOZwjF6nd8rrtdrBk3w8 s2U+ZYwa6AsY4ZQEBxDpeWH2PqaFlvqYKWRTU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=pboILmoolO88fMqeozurhGbtemJM/vzT5+yFSUgr3MwBm7OUVjmN+blr3WTmks8vrh hVW6u85GFoEyfn4E7vycjlqpfIfpwfggsG5rDtSASOhnAlGy660fU+NQMZbYnp5K0JDS t9C3IqFJSmPnkwK9Q9f+Yqgu2aTIv40EzvElA= Received: by 10.213.13.129 with SMTP id c1mr353176eba.53.1278173069438; Sat, 03 Jul 2010 09:04:29 -0700 (PDT) Received: from localhost (ppp91-77-43-224.pppoe.mtu-net.ru [91.77.43.224]) by mx.google.com with ESMTPS id z55sm16581104eeh.15.2010.07.03.09.04.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 03 Jul 2010 09:04:29 -0700 (PDT) From: Kulikov Vasiliy To: Kernel Janitors Cc: Jesse Barnes , Tejun Heo , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 14/19] drivers/pci: use for_each_pci_dev() Date: Sat, 3 Jul 2010 20:04:28 +0400 Message-Id: <1278173068-11881-1-git-send-email-segooon@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 03 Jul 2010 16:06:08 +0000 (UTC) diff --git a/drivers/pci/proc.c b/drivers/pci/proc.c index 449e890..2fd73fb 100644 --- a/drivers/pci/proc.c +++ b/drivers/pci/proc.c @@ -485,9 +485,9 @@ static int __init pci_proc_init(void) proc_create("devices", 0, proc_bus_pci_dir, &proc_bus_pci_dev_operations); proc_initialized = 1; - while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { + for_each_pci_dev(dev) pci_proc_attach_device(dev); - } + return 0; }