ixgbe: fix registration order of driver and DCA nofitication
authorJakub Kicinski <jakub.kicinski@intel.com>
Wed, 3 Apr 2013 16:50:54 +0000 (16:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Apr 2013 04:49:13 +0000 (00:49 -0400)
commitf01fc1a82c2ee68726b400fadb156bd623b5f2f1
treea8a38e688acb792ea5b88114f9092de6d28ff7de
parent0e82e7f6dfeec1013339612f74abc2cdd29d43d2
ixgbe: fix registration order of driver and DCA nofitication

ixgbe_notify_dca cannot be called before driver registration
because it expects driver's klist_devices to be allocated and
initialized. While on it make sure debugfs files are removed
when registration fails.

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Jakub Kicinski <jakub.kicinski@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c