sfc: Assign efx and efx->type as early as possible in efx_pci_probe()
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 2 Aug 2012 00:39:38 +0000 (01:39 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Fri, 24 Aug 2012 19:10:23 +0000 (20:10 +0100)
commitadeb15aa1ce3413d461ec0958a979e9d64cd764c
tree58cf2fa35cffe57f753d296df4d9103fb85d265a
parent3f65ea5b2aa0f76a463c85ed39955c26faf4f5a7
sfc: Assign efx and efx->type as early as possible in efx_pci_probe()

We also stop clearing *efx in efx_init_struct().  This is safe because
alloc_etherdev_mq() already clears it for us.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/efx.c