Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4952192ybe; Mon, 16 Sep 2019 23:26:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyh4Jg0z79lMkg2nyLxtulY51KxlwK61HwsQeCmkYUlwWZa+E4/WakPpz8thZ0X+M/crSbg X-Received: by 2002:aa7:c559:: with SMTP id s25mr3022162edr.198.1568701567117; Mon, 16 Sep 2019 23:26:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568701567; cv=none; d=google.com; s=arc-20160816; b=zeL9qwZKXHd7WoU8sj6ym/StLFekgaN9I94+89fEAoZgwgFEOo4fFSc8f0Eysv9OzK nlGjSIT/VgLJjt7lEwioPuxnA4R/b+qjhu1K9MlbtaVvClnZL318Bzy6HBqiUEa3Tq9C xKq9NCJzTKrI7vFkIUVgGDnTj2iGPndV+HVaUZUGNzEelQ+Yrhgd3t8w8i6XH7erl192 R4BkUlB4JaGod/mjmNrP2E+78y8ebp1qmOW7oCtjV908EUNZxObEhQ+FHQFD7VIfHE0b AtEjrCdftCDjtYp7jDTUM34cnSPKyDtcvanfNe4akGJuQYl8MZC++3dStAI9a+CyGcvl BK7w== 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=3cjyw4iwufFr2TJPexscuSdiVbwU5mYSUwRk7WraBNI=; b=ChZ69LG2QR2pn3XC57TY1hSrYtWhLorbAq35wlc9xl1SXIGAVRC3rKSdB8H37wxrMn qUooVuuoTBQJQs4HDBlnCkxfJULeQIPHNH1RZP68D0F46mGOBLOqv31w5NgEkFa5spQx HBiavVhXT+lEMeKiXQywIRSu0UCmBXZ6rF2DcEc0tGceY07ZG4Qo/VUqtgVWwDivklAM pmakFLxiOOFBwZ2yIkIqql43ABll+3YONzLAzccJ8CLyis7/oD4nFcT5cy2ONeN+UcMk 4gya3xJM3eDeMx8BRX0ygIYgAL/ZwzuU6b8WUGT2X2rzpeQ4d/CkLMrkAJAJMXUdbl5Q YkEg== 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 ha10si576806ejb.300.2019.09.16.23.25.43; Mon, 16 Sep 2019 23:26:07 -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 S2391675AbfIPUrq (ORCPT + 99 others); Mon, 16 Sep 2019 16:47:46 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38106 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391655AbfIPUrp (ORCPT ); Mon, 16 Sep 2019 16:47:45 -0400 Received: by mail-wm1-f68.google.com with SMTP id o184so706934wme.3; Mon, 16 Sep 2019 13:47:43 -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=3cjyw4iwufFr2TJPexscuSdiVbwU5mYSUwRk7WraBNI=; b=Tr8MstYMiKd76A0jbU81wmUaK3mG8bOCOCjqAnKQjMSzM3+p2IOo5VlN3LLNoZYRz7 F7ed+xbcJCdl9c/jcME5w2fghr7deqNSw2HjuoHdzPszgI3r7EC+4o7UkOMFKfIfJhvo R3gwvYk5yp75qXdfUffW3miAEUXLB5q2QpHL0c+NsOWXho2EwtZ4vczH5+1desM3SclK 13o+sPa2AwU87ktvHDAvBQe2vQKDNM4m3OOsKHYCDc31PpV3fFJj/Jq+VLJU0zfPwItN cUuUuSZGmo37JjYW3ekQmRzJCgKsBXcJlQ1A3orreoXs1V/h/uxCl0ke2Pl2Oe+hy8el ayhA== X-Gm-Message-State: APjAAAXnBT2PeyZnnbmXKyWJFHvGxqpYbBJp8QX/0C8oxERBwGXSlrRc RS6kh0bqaR7wgQItHA1Tazjv+AMxhEs= X-Received: by 2002:a1c:9615:: with SMTP id y21mr704785wmd.5.1568666863156; Mon, 16 Sep 2019 13:47:43 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2019 13:47:42 -0700 (PDT) From: Denis Efremov To: Bjorn Helgaas Cc: Denis Efremov , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Andrew Murray , linux-mmc@vger.kernel.org, Maxim Levitsky , Alex Dubov , Ulf Hansson Subject: [PATCH v3 23/26] memstick: use PCI_STD_NUM_BARS Date: Mon, 16 Sep 2019 23:41:55 +0300 Message-Id: <20190916204158.6889-24-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: Maxim Levitsky Cc: Alex Dubov Cc: Ulf Hansson Signed-off-by: Denis Efremov --- drivers/memstick/host/jmb38x_ms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memstick/host/jmb38x_ms.c b/drivers/memstick/host/jmb38x_ms.c index 32747425297d..fd281c1d39b1 100644 --- a/drivers/memstick/host/jmb38x_ms.c +++ b/drivers/memstick/host/jmb38x_ms.c @@ -848,7 +848,7 @@ static int jmb38x_ms_count_slots(struct pci_dev *pdev) { int cnt, rc = 0; - for (cnt = 0; cnt < PCI_ROM_RESOURCE; ++cnt) { + for (cnt = 0; cnt < PCI_STD_NUM_BARS; ++cnt) { if (!(IORESOURCE_MEM & pci_resource_flags(pdev, cnt))) break; -- 2.21.0