]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: xilinx: axi_emac: Cleanup ofdata_to_platdata
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Wed, 16 Jun 2021 06:20:30 +0000 (00:20 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 16 Jun 2021 08:40:32 +0000 (10:40 +0200)
commit0c4b782fa7c46d9334f3c7e37b9f6c2e57bba4cc
tree8ed4a4b63476054d1b3482bd285d52fb160ecb43
parent587e48cfd703d592986b8b2fa831650e9e2483bc
net: xilinx: axi_emac: Cleanup ofdata_to_platdata

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

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
drivers/net/xilinx_axi_emac.c