From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1givYu-0007n9-0v for barebox@lists.infradead.org; Mon, 14 Jan 2019 06:17:29 +0000 Received: by mail-pf1-x443.google.com with SMTP id c73so9834594pfe.13 for ; Sun, 13 Jan 2019 22:17:27 -0800 (PST) From: Andrey Smirnov Date: Sun, 13 Jan 2019 22:16:55 -0800 Message-Id: <20190114061709.13948-3-andrew.smirnov@gmail.com> In-Reply-To: <20190114061709.13948-1-andrew.smirnov@gmail.com> References: <20190114061709.13948-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v3 02/16] PCI: Replace magic number in setup_device() To: barebox@lists.infradead.org Cc: Andrey Smirnov , Sam Ravnborg User PCI_BASE_ADDRESS_SPACE_IO instead of explicit magic number. No functional change intended. Reviewed-by: Sam Ravnborg Signed-off-by: Andrey Smirnov --- drivers/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 1f9d360d79..5e67750c39 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -182,7 +182,7 @@ static void setup_device(struct pci_dev *dev, int max_bar) continue; } - if (mask & 0x01) { /* IO */ + if (mask & PCI_BASE_ADDRESS_SPACE_IO) { /* IO */ size = pci_size(orig, mask, 0xfffffffe); if (!size) { pr_debug("pbar%d bad IO mask\n", bar); -- 2.20.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox