Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4623149ybe; Mon, 16 Sep 2019 15:43:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqygXwUUddtkvSTMcm1QsPdm/QRmb0yJmJeQ2usdNX1fZ0LuP0vXYbdtSNkJJmfzYLlC6Fwe X-Received: by 2002:a50:9fce:: with SMTP id c72mr1732355edf.166.1568673795598; Mon, 16 Sep 2019 15:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568673795; cv=none; d=google.com; s=arc-20160816; b=nVubAflezQTnf/QYSSB90WED+IZanTqWhqXv8Eupv9VQ34GiQLXA+O/82Y6XrMNoz9 KAJe6jxAGPLNh23fd1wAV3LX/B1qE4dvrVVJeBG/YIwSOFGTsx7zTADjIlQgFiNMVDYL eH2RaJdsA2E9QuhbeXGzhyIxuhWvD8ygAG8WsPwr7mg9c/u2qH/2qFjhag2kUGY2FTCj kE8MEiGfP84sTZp9CV6YHj8OyS/PYBx8v0Q3o+QWOjtwJW/TjTN+t1vrVF6jqNGlF3I4 cyxB1XzMijAzPIXHucSJoID7WUdtRl4Bp9YG7SDh+NdW4CmgvvhPuMH6PPOymtM/xQ31 6+1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=jRXIYYCqTzf80wPMvUGVQBZL1Q1d4vGLXXoDHnC/zIQ=; b=K7RuQCw/4xZby5vxjZo5gHzDHVBITxTpCdsRyMYCDQdV07b2dcShqH4MkcpO4IYeSU NC90y/mpVr95tnW4rXNbWiEMjOdgWdKQsZwjhY+mWl5BDAK+0VsGK8905S9R258lSe96 eVcaOmeNIy05LyTxvCkmO631MKp+sAdJklpeZhh5OQbCF/7Y1/4hErfvPVZmuIxRjpvN 2KuzYZhSw0br4yRcfe5WfQjEiscDrxfbxpV6RDorM/p9grWi9HRRtHuz07gj9YeXVb7A azwQXGhb+3o/SHhw+j9tJx4H4X4mV/djp0Ut18/5LHZ0m8bzphJN379ourp0s04Levrj AGtg== 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fj16si159425ejb.385.2019.09.16.15.42.52; Mon, 16 Sep 2019 15:43:15 -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 S2391690AbfIPUru (ORCPT + 99 others); Mon, 16 Sep 2019 16:47:50 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:36822 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391655AbfIPUrt (ORCPT ); Mon, 16 Sep 2019 16:47:49 -0400 Received: by mail-wm1-f68.google.com with SMTP id t3so716561wmj.1; Mon, 16 Sep 2019 13:47:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jRXIYYCqTzf80wPMvUGVQBZL1Q1d4vGLXXoDHnC/zIQ=; b=qp/sC5unG5ESbvaTRsJ7m6SuOgxTQQ8ptk6BtJaCJOi/z2Drew6QEZ3u6tBxFH0dXW CNHsR1nohingnN7POvKiQpN0MLFQJB9ELBF1uuNACbQB+312oSM3HPhrflvPDsfRcyh3 Jkjv6fPfJe3Z8adxBhREj+jaZEHDc8KXtHjVLvnW+/HEk9t5iAc+6PURQzQ/3/MBglFs xCrs0ROx+VFSA7gFlfE3pLXPUQh5xGpUwigFGTt6+LvrL1uTtw/++WSnlVCMCl6g94fF WNKBbpP5GzS4lLYcnP1ciJbt8ebHeEzlJERuKg1iXi3QisxICDwXGI+SV/qxkGaisIZ4 hvAA== X-Gm-Message-State: APjAAAVNGSKoiSmoN4cR1lJ+C/D+SqHNC5koJvE+4/jzaFpCS9WhatZb JYAKh140ffiyFnRr9fLfCDk= X-Received: by 2002:a1c:9ecb:: with SMTP id h194mr645276wme.35.1568666867296; Mon, 16 Sep 2019 13:47:47 -0700 (PDT) Received: from black.home (broadband-188-32-48-208.ip.moscow.rt.ru. [188.32.48.208]) by smtp.googlemail.com with ESMTPSA id x6sm231437wmf.38.2019.09.16.13.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2019 13:47:46 -0700 (PDT) From: Denis Efremov To: Bjorn Helgaas Cc: Denis Efremov , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Andrew Murray , linux-usb@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH v3 24/26] USB: core: Use PCI_STD_NUM_BARS Date: Mon, 16 Sep 2019 23:41:56 +0300 Message-Id: <20190916204158.6889-25-efremov@linux.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190916204158.6889-1-efremov@linux.com> References: <20190916204158.6889-1-efremov@linux.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use define PCI_STD_NUM_BARS instead of PCI_ROM_RESOURCE for the number of PCI BARs. Cc: Greg Kroah-Hartman Signed-off-by: Denis Efremov --- drivers/usb/core/hcd-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c index 7537681355f6..3a79e8623d66 100644 --- a/drivers/usb/core/hcd-pci.c +++ b/drivers/usb/core/hcd-pci.c @@ -234,7 +234,7 @@ int usb_hcd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) /* UHCI */ int region; - for (region = 0; region < PCI_ROM_RESOURCE; region++) { + for (region = 0; region < PCI_STD_NUM_BARS; region++) { if (!(pci_resource_flags(dev, region) & IORESOURCE_IO)) continue; -- 2.21.0