net/enetc: release port upon close
authorSachin Saxena <sachin.saxena@oss.nxp.com>
Mon, 28 Sep 2020 23:14:18 +0000 (01:14 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:14 +0000 (19:19 +0200)
commit71a2b9561cdf290f459cf04434ef2c816a54d5a2
treecf72c94fd18a59c3d56c76712e48ca2478795bca
parent5964d36a2904d7c887a1f5862760caf151bd7d6e
net/enetc: release port upon close

With removal of old close behavior, the private
port resources must be released in the .dev_close callback.
Freeing of port private resources is moved from
the ".remove(device)" to the ".dev_close(port)" operation

Signed-off-by: Sachin Saxena <sachin.saxena@oss.nxp.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/enetc/enetc_ethdev.c