]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: xilinx: axi_emac: Cleanup of of_to_plat()
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Thu, 24 Jun 2021 06:34:40 +0000 (00:34 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 28 Jun 2021 07:08:20 +0000 (09:08 +0200)
commit215f2064c365ffc2b9fad65248fee7bcf70f92b1
treeec932359cc032621585b5c1e7cba233a2e8f4186
parentda1af52f751993cc34abf423497f48c713d633a2
net: xilinx: axi_emac: Cleanup of of_to_plat()

There are lot of accesses to priv data in of_to_plat(), which is incorrect.
Create a platform data structure and use it in of_to_plat(), then copy all
platform data to priv data in probe.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/xilinx_axi_emac.c