ntb_netdev: Simplify remove with client device drvdata
authorAaron Sierra <asierra@xes-inc.com>
Mon, 15 Oct 2018 20:32:47 +0000 (15:32 -0500)
committerJon Mason <jdmason@kudzu.us>
Thu, 1 Nov 2018 01:20:05 +0000 (21:20 -0400)
commit906e86b22dba61cb1baaed9be7fdcbf0afd74d7b
treea8e10a97d5a3d749c3dc808f09c7fd17e4de2da2
parentfc5d1829f9bf3d8275322727c0e9a8baf268b7c6
ntb_netdev: Simplify remove with client device drvdata

Replace the elaborate private structure global linked-list used in
ntb_netdev_probe() and ntb_netdev_remove() by stashing our private
data in the NTB transport client device.

Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/net/ntb_netdev.c