[U-Boot] [PATCH v2 1/5] driver: net: ti: cpsw-mdio: use phys_addr_t for mdio_base addr
Keerthy
j-keerthy at ti.com
Mon Feb 4 04:04:28 UTC 2019
From: Grygorii Strashko <grygorii.strashko at ti.com>
Use phys_addr_t for mdio_base address to avoid build warnings on arm64.
Signed-off-by: Grygorii Strashko <grygorii.strashko at ti.com>
Signed-off-by: Keerthy <j-keerthy at ti.com>
Reviewed-by: Tom Rini <trini at konsulko.com>
---
Changes in v2:
Added Tom's Reviewed-by
drivers/net/ti/cpsw_mdio.c | 2 +-
drivers/net/ti/cpsw_mdio.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ti/cpsw_mdio.c b/drivers/net/ti/cpsw_mdio.c
index 70f547e6d7..86980612dd 100644
--- a/drivers/net/ti/cpsw_mdio.c
+++ b/drivers/net/ti/cpsw_mdio.c
@@ -125,7 +125,7 @@ u32 cpsw_mdio_get_alive(struct mii_dev *bus)
return val & GENMASK(15, 0);
}
-struct mii_dev *cpsw_mdio_init(const char *name, u32 mdio_base,
+struct mii_dev *cpsw_mdio_init(const char *name, phys_addr_t mdio_base,
u32 bus_freq, int fck_freq)
{
struct cpsw_mdio *cpsw_mdio;
diff --git a/drivers/net/ti/cpsw_mdio.h b/drivers/net/ti/cpsw_mdio.h
index 4a76d4e5c5..dbf4a2dcac 100644
--- a/drivers/net/ti/cpsw_mdio.h
+++ b/drivers/net/ti/cpsw_mdio.h
@@ -10,7 +10,7 @@
struct cpsw_mdio;
-struct mii_dev *cpsw_mdio_init(const char *name, u32 mdio_base,
+struct mii_dev *cpsw_mdio_init(const char *name, phys_addr_t mdio_base,
u32 bus_freq, int fck_freq);
void cpsw_mdio_free(struct mii_dev *bus);
u32 cpsw_mdio_get_alive(struct mii_dev *bus);
--
2.17.1
More information about the U-Boot
mailing list