net: ti: cpsw: Convert cpsw_platform_data to a pointer in cpsw_priv
authorFaiz Abbas <faiz_abbas@ti.com>
Mon, 18 Mar 2019 08:24:33 +0000 (13:54 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 12 Apr 2019 12:05:53 +0000 (08:05 -0400)
commitf32a816c26d8746668457733440474ee98e256ef
tree94b2795fcf85f378b94ed1545d436c10c81f27bf
parente50f878c98ddec1f8247b835335d7ea1ab8e7b3f
net: ti: cpsw: Convert cpsw_platform_data to a pointer in cpsw_priv

Convert cpsw_platform_data to a pointer in cpsw_priv. Allocate it
dynamically and assign it as a part of eth_pdata. This helps in
isolating platform data handling and implementing platdata for SPL
in a board file.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
drivers/net/ti/cpsw.c