From patchwork Thu Jun 30 13:14:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 9207501 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D360B6075F for ; Thu, 30 Jun 2016 13:14:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C524B284BF for ; Thu, 30 Jun 2016 13:14:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B9F70285A4; Thu, 30 Jun 2016 13:14:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50CD2284BF for ; Thu, 30 Jun 2016 13:14:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751997AbcF3NOl (ORCPT ); Thu, 30 Jun 2016 09:14:41 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35192 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751965AbcF3NOk (ORCPT ); Thu, 30 Jun 2016 09:14:40 -0400 Received: by mail-pf0-f193.google.com with SMTP id t190so7390706pfb.2; Thu, 30 Jun 2016 06:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CK0HxlngMiA/BXFE0nsEvSwpqEVB6B4K+Q+Y2Ex9W5k=; b=jp91/YtN/62JUKgVSD6XeqWoTaYXsY7H8zc1dAVBkT0hQY0pMTu+vUKvVEwiboXOVN NpbG2hP9RPsVFAQeDlB4PSFz+zYGnhCViJ8zdY2GMpcLu7K70biDMd9WmrI7RfSnkC5P 3usrFydT7VCsX6RXtgAvaxosMJuM2hwPWdBkBIFTMD93Lxh+jiXQUKlm4mduAwZ/l1Au VcICgPyKiLt6h39adO9M8BpBuQsGSnfhA15qFXOE1Pg8FlutcX80xum6MwBptH/xC4Wg wf8Xd0D8Ne+fixwi+OSeT76HCVOBHBxzkDR2/jy6vO45mNX3/DwAJpQBTfQEWIErbxTj m7Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CK0HxlngMiA/BXFE0nsEvSwpqEVB6B4K+Q+Y2Ex9W5k=; b=Ewq9snkWNFkc1YbKMHZRZ7gmFuxOtGcANyBVkd07URoqzfIT+pi4GtK2gtSscp9FkO jUNXvo6yWw71E2+Z1zxjQ8H2pLN08V9Q3Vy1i+jAlr1kJBjvxWFZZ/vVM8X01hrJ7SWh ekiUTG4b6sDuV32zOP7KYTCJeOoa+8tdypbwTd2Ujyt2mhs1TB6YI6+wq+T9eO5RWcF3 Qg7Evami6hl4Ghf41+qPVGwX/AxfonowpHOCqJZIIOWc6BZ3vGk+eD4spPpMYiRFzAu0 /NizvEMKCGr0Mxqr2ye8tTsitXGmGaZSgEyS8m0lN6azoAXXKixPecfQYl8oFv5mUsza NntQ== X-Gm-Message-State: ALyK8tJYNHqBPU2pxhuUmliYZlqby3VeQk9f8a6JWF+z6RdtF/YhuBCJBfc7znePiP6W5Q== X-Received: by 10.98.25.66 with SMTP id 63mr21310683pfz.94.1467292479843; Thu, 30 Jun 2016 06:14:39 -0700 (PDT) Received: from localhost (port-5350.pppoe.wtnet.de. [84.46.20.250]) by smtp.gmail.com with ESMTPSA id z127sm5932597pfz.20.2016.06.30.06.14.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jun 2016 06:14:39 -0700 (PDT) From: Thierry Reding To: Thierry Reding Cc: Bjorn Helgaas , linux-tegra@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH 2/3] PCI: tegra: Use pci_remap_iospace() Date: Thu, 30 Jun 2016 15:14:29 +0200 Message-Id: <20160630131430.32096-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20160630131430.32096-1-thierry.reding@gmail.com> References: <20160630131430.32096-1-thierry.reding@gmail.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding Use the pci_remap_iospace() function provided by the PCI core, rather than the 32-bit ARM-specific pci_ioremap_io(). Signed-off-by: Thierry Reding --- drivers/pci/host/pci-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c index 9595518f541d..f04b062e8c67 100644 --- a/drivers/pci/host/pci-tegra.c +++ b/drivers/pci/host/pci-tegra.c @@ -645,7 +645,7 @@ static int tegra_pcie_setup(int nr, struct pci_sys_data *sys) sys->mem_offset); pci_add_resource(&sys->resources, &pcie->busn); - pci_ioremap_io(pcie->pio.start, pcie->io.start); + pci_remap_iospace(&pcie->pio, pcie->io.start); return 1; }