bnx2x: Calling pci_set_drvdata earlier
authorEilon Greenstein <eilong@broadcom.com>
Wed, 12 Aug 2009 08:23:28 +0000 (08:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Aug 2009 06:02:45 +0000 (23:02 -0700)
commitdf4770de03d2eec3f66b0ac4d2248d471a1ccc0b
tree42165fc7574dc1e05ae6663be31b7891c5ff471f
parenta18f5128828cd1af8091602f5233b00422e74c9a
bnx2x: Calling pci_set_drvdata earlier

In case of error, bnx2x_init_dev calls pci_set_drvdata(pdev, NULL)

Signed-off-by: Yitchak Gertner <gertner@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x_main.c