summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/icplus
diff options
context:
space:
mode:
authorWei Yang <weiyang@linux.vnet.ibm.com>2014-04-14 05:51:19 +0400
committerDavid S. Miller <davem@davemloft.net>2014-04-14 07:12:15 +0400
commitbefdf8978accecac2e0739e6b5075afc62db37fe (patch)
tree58591373f00b298409be793cecfdaa9c9e60a5c1 /drivers/net/ethernet/icplus
parentb04c46190219a4f845e46a459e3102137b7f6cac (diff)
downloadlinux-befdf8978accecac2e0739e6b5075afc62db37fe.tar.xz
net/mlx4_core: Preserve pci_dev_data after __mlx4_remove_one()
pci_match_id() just match the static pci_device_id, which may return NULL if someone binds the driver to a device manually using /sys/bus/pci/drivers/.../new_id. 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. Fixes: 97a5221 "net/mlx4_core: pass pci_device_id.driver_data to __mlx4_init_one during reset". CC: Bjorn Helgaas <bhelgaas@google.com> CC: Amir Vadai <amirv@mellanox.com> CC: Jack Morgenstein <jackm@dev.mellanox.co.il> CC: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com> Acked-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/icplus')
0 files changed, 0 insertions, 0 deletions