]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
treewide: remove (phys_addr_t) casts from devfdt_get_addr()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 17 Jul 2020 05:36:47 +0000 (14:36 +0900)
committerSimon Glass <sjg@chromium.org>
Mon, 20 Jul 2020 17:37:47 +0000 (11:37 -0600)
This cast is unneeded.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/net/fec_mxc.c
drivers/net/fsl_mcdmafec.c
drivers/net/mcffec.c
drivers/net/xilinx_axi_emac.c
drivers/net/xilinx_emaclite.c

index b3d4acb1062b0e0196134e8f18457d535b7fbec9..a3f6e3adaf65c0df30ec76afff393c3cd489e160 100644 (file)
@@ -1534,7 +1534,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;
index f33529cb676bde71e4e5b23364798e16b04f76f9..4c9a62ad508b40bcea211b9ed667abb6aa9ca42d 100644 (file)
@@ -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;
 
index 1a8351be1c5ea63b4a3e8cda7b50d64bf3cf2e75..d8367b5da8fdc3b79ee0a414a11498398ab3427a 100644 (file)
@@ -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;
 
index 2cd55967684683648073382e1e2417b2d5143dd3..35176c545e579570bb7dc4c078d313d8c924583b 100644 (file)
@@ -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,
index 9bdb6798b6708a38519c7b07bd353137cdd5a9ce..e7f7e6ad1d615c35262968b4a7aff63fec20f4f9 100644 (file)
@@ -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);