mlx4_core: Stash PCI ID driver_data in mlx4_priv structure
authorWei Yang <weiyang@linux.vnet.ibm.com>
Sun, 1 Jun 2014 07:25:19 +0000 (15:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jun 2014 19:10:28 +0000 (15:10 -0400)
commitff2005a4a5ba32505030b0bcb3c2a163ea417c53
tree8f3002ae229d28bd9f3c9da435deedb9b9b3b7c6
parent3309a9750b319afc809caa29b8091e9746ec8ce0
mlx4_core: Stash PCI ID driver_data in mlx4_priv structure

[ No upstream commit, this is a cherry picked backport enabler. ]

From: Roland Dreier <roland@purestorage.com>

That way we can check flags later on, when we've finished with the
pci_device_id structure.  Also convert the "is VF" flag to an enum:
"Never do in the preprocessor what can be done in C."

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h