net: tsec: Use map_physmem() directly instead of dev_remap_addr()
authorBin Meng <bmeng.cn@gmail.com>
Sun, 14 Mar 2021 12:14:59 +0000 (20:14 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 15 Apr 2021 08:52:17 +0000 (14:22 +0530)
commit408f056e0683b3656bce6666859448002185c2d6
treef017b1be784ec8f5f8295bb9e18584dc10223a4a
parent534c69b09a8907799e0e5f9f85bc2f638f6c99a9
net: tsec: Use map_physmem() directly instead of dev_remap_addr()

dev_remap_addr() eventually calls dev_read_addr_index(), while
pdata->iobase holds the return value of dev_read_addr() that calls
dev_read_addr_index() too. Such duplication can be avoided by using
map_physmem() directly.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/net/tsec.c