Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4622637ybe; Mon, 16 Sep 2019 15:42:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkGd+QOfu1NKlPjaDv+Y9xRhdC9flWJ+Bmdc32UoImY/DI8fWTDbZoveBJcqZUaxsy5G4W X-Received: by 2002:aa7:d988:: with SMTP id u8mr1706627eds.116.1568673745890; Mon, 16 Sep 2019 15:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568673745; cv=none; d=google.com; s=arc-20160816; b=yBK34S3RjxOVktFnIslPn73d24ArzjH4YC4EVe68cDyIXdwnYcz0Q0BLbw6Tp8xysg p0x0QEb6YCYdSKrH+03sF18oFrj/oM8X4daIfOIC1z3JXZiLz2bCIoGvxHt5UDUNi/6I V2VG5d/NB07UxnpH2UqzOdn2KrX6kiHvlFmBqdwGZtAKywwRP5ozu4yNH08UvH6jvs5/ zKqtkE8XEzmN59hpRiW8+KnN445WXslFHwLcDxdAHT/6Vv0XwMxOxcc7+XBgVX8RpFns c1v7jfxwwvkypJDZMrN54HoCQVOvoywqLalq/TsLvXfoklH2RIgbO5VL68aEBWvSryQS VMqw== 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=IOS2e0UepoELcBHR5ni67YDdvRavbzFfhcVGtDlKQTM=; b=ysYbDPepxyk5Hr43xH+a0+NQXU/b+4o5SUJUKSE/6bOIAIVLUJjTUXwr0KvCvvIcp6 Ax7hlX2ygNxios7Ip9WsADvUm6IrdlytiMQY0hjHIArAxuNkBsDVBGRaHjyChvpNDK5j fgZsQSLPl0Smhz2vkPD845gO1foznyxxBGsTLoPNy9YhERb2A3HTa2DKa0H2bWJce9UE zOXoOBtX8kPC8l3Kj8Rr11upoQ/DN8wLtayfe8pNPEaBf6dqzu+0Vpyc0s5NDXiXxJs9 ndOu7+UW4El5EwP538FkaVXvAitXJnWs8vkdlJC9lr8y33t7FHUdrVjzeYKnncYgVyeA 5RsA== 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 b56si298394edb.418.2019.09.16.15.42.02; Mon, 16 Sep 2019 15:42: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 S2391660AbfIPUro (ORCPT + 99 others); Mon, 16 Sep 2019 16:47:44 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:36811 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727971AbfIPUrm (ORCPT ); Mon, 16 Sep 2019 16:47:42 -0400 Received: by mail-wm1-f67.google.com with SMTP id t3so716328wmj.1; Mon, 16 Sep 2019 13:47:41 -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=IOS2e0UepoELcBHR5ni67YDdvRavbzFfhcVGtDlKQTM=; b=XuITJ9/tp8KJKAOzlxh+TZajIZPbu3WOS+0GYuDCdB1P6CCJwR427RVA3O7p30prmn vfSAg7YXYnqaTnFS9wx3Rbybi4a7eLo7sXrxNwCS3JBzfq0nnCxZwtHaLLTgc6jLtgL9 eXOjlpkr45umzNYfnvSEcfh6jexgaKDZl+e7RsmIWSqX3RO8+YBZ48VtbF4MC5QaaM7L XOdGvEynhthhfaDyewdsJyhguGFGTRwgPG5STf0db4sVmOdC1/t4Vkgg1GyjAVnvugIp gP5CByKEyjlomYJ8eecNEuEBtxuJcmRx61QQ2Pjew0bCVX8Od/usrvizNu3e2wJopX+O jlnQ== X-Gm-Message-State: APjAAAXJ3IeFtAZAFL1Red45Fi5S3r2Mg9weE48nqhXVvNIa1YlODHQF waGsMAL19QQZO3hXIRv/tUU= X-Received: by 2002:a1c:bcd6:: with SMTP id m205mr631830wmf.129.1568666860528; Mon, 16 Sep 2019 13:47:40 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2019 13:47:40 -0700 (PDT) From: Denis Efremov To: Bjorn Helgaas Cc: Denis Efremov , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Andrew Murray , linux-ide@vger.kernel.org, Bartlomiej Zolnierkiewicz , Jens Axboe Subject: [PATCH v3 22/26] pata_atp867x: Use PCI_STD_NUM_BARS Date: Mon, 16 Sep 2019 23:41:54 +0300 Message-Id: <20190916204158.6889-23-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: Bartlomiej Zolnierkiewicz Cc: Jens Axboe Signed-off-by: Denis Efremov --- drivers/ata/pata_atp867x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/pata_atp867x.c b/drivers/ata/pata_atp867x.c index 2b9ed4ddef8d..019198eb7099 100644 --- a/drivers/ata/pata_atp867x.c +++ b/drivers/ata/pata_atp867x.c @@ -422,7 +422,7 @@ static int atp867x_ata_pci_sff_init_host(struct ata_host *host) #ifdef ATP867X_DEBUG atp867x_check_res(pdev); - for (i = 0; i < PCI_ROM_RESOURCE; i++) + for (i = 0; i < PCI_STD_NUM_BARS; i++) printk(KERN_DEBUG "ATP867X: iomap[%d]=0x%llx\n", i, (unsigned long long)(host->iomap[i])); #endif -- 2.21.0