From patchwork Fri Jul 17 05:36:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 235667 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1404034ilg; Thu, 16 Jul 2020 22:37:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwomxrLy94LNYnk6PVay+C+NB7W526t57bGgT77/remRact88qyv4vOIhGAh8xTX4PutTv5 X-Received: by 2002:a17:906:c007:: with SMTP id e7mr7002775ejz.481.1594964242243; Thu, 16 Jul 2020 22:37:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594964242; cv=none; d=google.com; s=arc-20160816; b=0uhR95lBTpg0q9t4nWc2zqqvFqX5xMOJ/kmt0sXsze/G/TW3LDAAuAqIemjDN846Qr yAiP2iw6dkxHN1PbvytnJkxS4/YNtLqV3EaOQCzIP+7QOhsepWJXBu88Sdtzqwa+oQ2M dBIqD0+zDD/pXbxslrmkAtgsDOYIkrS1Ql1m5lpK/G+sPTZqz9uU5kPxTUliiRKVw1/i NPGiRNguisQLCRDjh/3QIRpgqDewC654He8+7m9nJi/7Ryjg9kjIuKLRo/ZnXSzybRkZ WC26s5phQwHmfQzpXchal/AYehN1L8LCXolXTfUHwdoKXTqVSRaoTJQXYV+OP6sCxgZ0 LJLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter; bh=Ky+0bfAKfsUsOci87piEX996huHzm7FiEgc11L4A+us=; b=1LqFSqXwBGqhIAzY8jSZ19uAXji5ORQuQZFMzPOIVStw3VQOBQZM92swpJ9EDtaeTQ XUuxMjf7jX8QZxf4tLbfImrQJrZHaAjsmvBmVLMPafs9gOm5QpYc0C+6Y9kB6INuCLpR R0RQLtumWaCDqSHRhmnup+hBiGYkR8mY1WE0cUE5LSkhFVrNOOj+J/V0qikpAHjQgM3q 1gdFtiBA0Sthu7Bs/URj3KRlxiImm4AASueyGiqlz844bdK+95x+1Jctrn9fH3ZqX106 Q85PL6GKBDO7xlFhzh+Fh7io6Fqs6k/UQ1oXgVYWrqGmGBFYkm+QoRMi/IAI6TC7Z4LQ 5Dgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="WM5tCaM/"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id dn20si4374693ejc.341.2020.07.16.22.37.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 22:37:22 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="WM5tCaM/"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C59F981C0D; Fri, 17 Jul 2020 07:37:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="WM5tCaM/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5A47381C15; Fri, 17 Jul 2020 07:37:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_L3,SPF_HELO_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from conuserg-11.nifty.com (conuserg-11.nifty.com [210.131.2.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id ADE4681BFD for ; Fri, 17 Jul 2020 07:37:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=yamada.masahiro@socionext.com Received: from oscar.flets-west.jp (softbank126025067101.bbtec.net [126.25.67.101]) (authenticated) by conuserg-11.nifty.com with ESMTP id 06H5ao7s011850; Fri, 17 Jul 2020 14:36:51 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com 06H5ao7s011850 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1594964211; bh=Ky+0bfAKfsUsOci87piEX996huHzm7FiEgc11L4A+us=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WM5tCaM/BMwKo3Ak418wQO79BVW2Fla5r0Zz1ABwQTyxLTwGulsMamZZzi+GPw/c5 Qp/L1WSc6pUoFoKyqpubQTM4mjLFrtJOqBwXZ2ID6ixbcW0Bzj7wdTBGqHXogzMXBz O/xv6YyCVPDLMFUee7b/KOBoKBnaJ0ScxZsT+FZ7lJb39twIufV3hPzqyKXyKnGjdJ qhI1t/qY9v/0GuRCOi8R3p8CF+gkn4ZX17n/CX5by+Qn5Pp0JIQ04ruxPVElx/4NN1 qmd/Q7E0d5eYbAMAlPnT7hFF4fX4gZbF+tpVUieiZx6DxoqD6pBa69GqtF/OQonSrt zphxLlcao1RaA== X-Nifty-SrcIP: [126.25.67.101] From: Masahiro Yamada To: u-boot@lists.denx.de Cc: Masahiro Yamada Subject: [PATCH 2/3] treewide: remove (phys_addr_t) casts from devfdt_get_addr() Date: Fri, 17 Jul 2020 14:36:47 +0900 Message-Id: <20200717053648.835616-2-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200717053648.835616-1-yamada.masahiro@socionext.com> References: <20200717053648.835616-1-yamada.masahiro@socionext.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean This cast is unneeded. Signed-off-by: Masahiro Yamada --- drivers/net/fec_mxc.c | 2 +- drivers/net/fsl_mcdmafec.c | 2 +- drivers/net/mcffec.c | 2 +- drivers/net/xilinx_axi_emac.c | 2 +- drivers/net/xilinx_emaclite.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) -- 2.25.1 diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 992180df86..3244b15c1d 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -1533,7 +1533,7 @@ static int fecmxc_ofdata_to_platdata(struct udevice *dev) struct fec_priv *priv = dev_get_priv(dev); const char *phy_mode; - pdata->iobase = (phys_addr_t)devfdt_get_addr(dev); + pdata->iobase = devfdt_get_addr(dev); priv->eth = (struct ethernet_regs *)pdata->iobase; pdata->phy_interface = -1; diff --git a/drivers/net/fsl_mcdmafec.c b/drivers/net/fsl_mcdmafec.c index 73e92b7a0d..712071cc2b 100644 --- a/drivers/net/fsl_mcdmafec.c +++ b/drivers/net/fsl_mcdmafec.c @@ -570,7 +570,7 @@ static int mcdmafec_ofdata_to_platdata(struct udevice *dev) struct eth_pdata *pdata = dev_get_platdata(dev); const u32 *val; - pdata->iobase = (phys_addr_t)devfdt_get_addr(dev); + pdata->iobase = devfdt_get_addr(dev); /* Default to 10Mbit/s */ pdata->max_speed = 10; diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c index 697549301f..aef3c09b2c 100644 --- a/drivers/net/mcffec.c +++ b/drivers/net/mcffec.c @@ -589,7 +589,7 @@ static int mcffec_ofdata_to_platdata(struct udevice *dev) struct eth_pdata *pdata = dev_get_platdata(dev); const u32 *val; - pdata->iobase = (phys_addr_t)devfdt_get_addr(dev); + pdata->iobase = devfdt_get_addr(dev); /* Default to 10Mbit/s */ pdata->max_speed = 10; diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c index 2cd5596768..35176c545e 100644 --- a/drivers/net/xilinx_axi_emac.c +++ b/drivers/net/xilinx_axi_emac.c @@ -722,7 +722,7 @@ static int axi_emac_ofdata_to_platdata(struct udevice *dev) int offset = 0; const char *phy_mode; - pdata->iobase = (phys_addr_t)devfdt_get_addr(dev); + pdata->iobase = devfdt_get_addr(dev); priv->iobase = (struct axi_regs *)pdata->iobase; offset = fdtdec_lookup_phandle(gd->fdt_blob, node, diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index 9bdb6798b6..e7f7e6ad1d 100644 --- a/drivers/net/xilinx_emaclite.c +++ b/drivers/net/xilinx_emaclite.c @@ -599,7 +599,7 @@ static int emaclite_ofdata_to_platdata(struct udevice *dev) struct xemaclite *emaclite = dev_get_priv(dev); int offset = 0; - pdata->iobase = (phys_addr_t)devfdt_get_addr(dev); + pdata->iobase = devfdt_get_addr(dev); emaclite->regs = (struct emaclite_regs *)ioremap_nocache(pdata->iobase, 0x10000);