Commit c5e6e9b3d6a19631c7882a0d2f313f3d6c79c658

Authored by Tom Rini
1 parent 05e23dd489

mvpp2: Fix warning over 32bit vs 64bit targets

When we have a driver that is used on both 32bit and 64bit targets and
we are talking about address space we cannot use u64 nor u32 and instead
need to use phys_addr_t.

Fixes: 377883f16d36 ("net: mvpp2x: fix phy connected to wrong mdio issue")
Cc: Stefan Chulski <stefanc@marvell.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -4722,7 +4722,7 @@
4722 4722 u32 id;
4723 4723 u32 phyaddr = 0;
4724 4724 int phy_mode = -1;
4725   - u64 mdio_addr;
  4725 + phys_addr_t mdio_addr;
4726 4726  
4727 4727 phy_node = fdtdec_lookup_phandle(gd->fdt_blob, port_node, "phy");
4728 4728