commit | bf485397242d693fece8bcf646113a6a99648bbc | [log] [tgz] |
---|---|---|
author | Wei Yang <weiyang@linux.vnet.ibm.com> | Sun Jun 01 15:25:20 2014 +0800 |
committer | chrmhoffmann <chrmhoffmann@gmail.com> | Sun Apr 05 10:20:20 2020 +0200 |
tree | 2f48336e8b5724b73d0bb15bf7084554f7b35ba4 | |
parent | bc0a25d3e7086abf445147730b2752e0e385c1ad [diff] |
net/mlx4_core: Preserve pci_dev_data after __mlx4_remove_one() [ Upstream commit befdf8978accecac2e0739e6b5075afc62db37fe ] This patch wrap up a helper function __mlx4_remove_one() which does the tear down function but preserve the drv_data. Functions like mlx4_pci_err_detected() and mlx4_restart_one() will call this one with out releasing drvdata. Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>