On Thu, 10 Apr 2014 17:25:24 +0800 Wei Yang <weiyang@xxxxxxxxxxxxxxxxxx> wrote: > 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@xxxxxxxxxx> > CC: Amir Vadai <amirv@xxxxxxxxxxxx> > CC: Jack Morgenstein <jackm@xxxxxxxxxxxxxxxxxx> > CC: Or Gerlitz <ogerlitz@xxxxxxxxxxxx> > Signed-off-by: Wei Yang <weiyang@xxxxxxxxxxxxxxxxxx> Acked-by: Jack Morgenstein <jackm@xxxxxxxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html