Re: [PATCH 1/2] net: xilinx: axi_emac: Cleanup of of_to_plat()

2021-06-27 Thread Ramon Fried
On Thu, Jun 24, 2021 at 9:35 AM Ashok Reddy Soma wrote: > > 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 > --- > >

[PATCH 1/2] net: xilinx: axi_emac: Cleanup of of_to_plat()

2021-06-23 Thread Ashok Reddy Soma
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 --- drivers/net/xilinx_axi_emac.c | 47 ---