Message ID | 1559577023-558-55-git-send-email-suzuki.poulose@arm.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp4645166ili; Mon, 3 Jun 2019 08:52:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2tLzyr9taFeM8HNjPoTzaSpSwY+OC8OhMjbXitmi4XCvUU341JRoiol0prbM2yu4YESGM X-Received: by 2002:a17:90b:d8b:: with SMTP id bg11mr2768454pjb.30.1559577145412; Mon, 03 Jun 2019 08:52:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559577145; cv=none; d=google.com; s=arc-20160816; b=r4LgX1UnmL1xPomupohbRs3Jwb45S6GvNg3J1uWqSHYShOs867JMQWPRgG50TSMwMr XKp65+YYkQK2EEHzkMjvBtlO/ZXSokIwKcZzK9hkYo9juVrGGtSZrVVqeShkph13Qtl/ NfxkCK3PQysY8poXi9OCnopSlZQU/lj0bDP+mRwDBS7NIqfb/Ekqywpsg6uo2UhcGM6y HAaMAnaMk3JIDN+71LG9iZDTFTnh/nJ9VYamTIeRoEfy0pbz8cRMMTAlmVBCBDVTDWXO oTllIEtgmDMjaWGLL7GAEGw0v88T/nrVWGzGl5o1tBYhDrZx4sTbxRTSAdpl4pS8hB7u iexA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=pVTQOWy67fGiSVcv8fxDBHHX+AeQYQY3NmOY4YRfSn0=; b=yrWt+DQ7Lyub9wIAWxJbgCveqGH8vhm9fPlt5MDgoM0CwBHRj44NE4cO1/ubc2Vhwa eGb6cT6UWvwizzxWc9Smb6Jixdxztb4De1oQOwlGGoekehthwoekabk0zi+F5ja8vabT 3IEJThxGo9kcKt0glgcn9ZM+jQbJgiswU1tRGkqh4RSdeN7m3zUtzh/kr88L1pW1yi+O dSOrHBS23qPxX1CcynhQfd0MElzmXCzl1F0BC44GB8WNdkPVuun9A1Ea1AckoNzH/0sP xyPk0zq2NfjjfJG0YgrsLkWoFy8aNKsF/wXXXFTcvWj3tk6wIxrGbX78kFkcLQi4+h3z BcFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4si17718022pgs.269.2019.06.03.08.52.25; Mon, 03 Jun 2019 08:52:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729613AbfFCPwX (ORCPT <rfc822;mike.holmes@linaro.org> + 30 others); Mon, 3 Jun 2019 11:52:23 -0400 Received: from foss.arm.com ([217.140.101.70]:54098 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729600AbfFCPwV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 3 Jun 2019 11:52:21 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7D68A1AED; Mon, 3 Jun 2019 08:52:21 -0700 (PDT) Received: from en101.cambridge.arm.com (en101.cambridge.arm.com [10.1.196.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 623E43F246; Mon, 3 Jun 2019 08:52:20 -0700 (PDT) From: Suzuki K Poulose <suzuki.poulose@arm.com> To: linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, rafael@kernel.org, suzuki.poulose@arm.com, Bjorn Helgaas <bhelgaas@google.com> Subject: [RFC PATCH 54/57] drivers: pci: Use bus_find_next_device() helper Date: Mon, 3 Jun 2019 16:50:20 +0100 Message-Id: <1559577023-558-55-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1559577023-558-1-git-send-email-suzuki.poulose@arm.com> References: <1559577023-558-1-git-send-email-suzuki.poulose@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
[RFC,01/57] drivers: s390/cio: Use driver_for_each_device
|
expand
|
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index f9ef7ad..3504695 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -64,11 +64,6 @@ static struct resource *get_pci_domain_busn_res(int domain_nr) return &r->res; } -static int find_anything(struct device *dev, const void *data) -{ - return 1; -} - /* * Some device drivers need know if PCI is initiated. * Basically, we think PCI is not initiated when there @@ -79,7 +74,7 @@ int no_pci_devices(void) struct device *dev; int no_devices; - dev = bus_find_device(&pci_bus_type, NULL, NULL, find_anything); + dev = bus_find_next_device(&pci_bus_type, NULL); no_devices = (dev == NULL); put_device(dev); return no_devices;
Reuse the generic helper to find the next device on bus. Cc: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> --- drivers/pci/probe.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) -- 2.7.4