Commit d741434c authored by Committed by David S. MillerBrowse files
dt:net:stmmac: Allocate platform data only if its NULL.
In some DT use-cases platform data might be already allocated and passed via AUXDATA. These are the cases where machine level code populates few callbacks in the platform data. This patch adds check and reuses platform_data if its valid, before allocating a new one. Signed-off-by: Srinivas Kandagatla <email@example.com> Acked-by: Giuseppe Cavallaro <firstname.lastname@example.org> Signed-off-by: David S. Miller <email@example.com>