enic: bug fix: don't set netdev->name too early
authorScott Feldman <scofeldm@cisco.com>
Wed, 24 Sep 2008 18:23:53 +0000 (11:23 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 25 Sep 2008 00:48:48 +0000 (20:48 -0400)
commit4b75a442d2affb2ed20422054b1c640bd3b9c36a
tree97fb7606f072d4cb44ef14fb971c28d48eeb2871
parent8f4d248cb7c1873275608f267e525e08bcbd543b
enic: bug fix: don't set netdev->name too early

Bug fix: don't set netdev->name early before netdev registration.  Setting
netdev->name early with dev_alloc_name() would occasionally cause netdev
registration to fail returning error that device was already registered.
Since we're using netdev->name to name MSI-X vectors, we now need to
move the request_irq after netdev registartion, so move it to ->open.

Signed-off-by: Scott Feldman <scofeldm@cisco.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/enic/enic.h
drivers/net/enic/enic_main.c