aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorWei Yang <[email protected]>2014-04-14 09:51:19 +0800
committerDavid S. Miller <[email protected]>2014-04-13 23:12:15 -0400
commitbefdf8978accecac2e0739e6b5075afc62db37fe (patch)
tree58591373f00b298409be793cecfdaa9c9e60a5c1 /include/linux/fpga/fpga-mgr.h
parentb04c46190219a4f845e46a459e3102137b7f6cac (diff)
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 <[email protected]> CC: Amir Vadai <[email protected]> CC: Jack Morgenstein <[email protected]> CC: Or Gerlitz <[email protected]> Signed-off-by: Wei Yang <[email protected]> Acked-by: Jack Morgenstein <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions