qlcnic: Initialize dcbnl_ops before register_netdev
authorRajesh Borundia <rajesh.borundia@qlogic.com>
Mon, 4 Aug 2014 15:51:18 +0000 (11:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Aug 2014 23:23:27 +0000 (16:23 -0700)
commitcd1560e2b60fc2fbfadb9200c366eb59fe04f10d
treeb98ac38ecf9bfd73f1af2d8901daf8e23f931342
parentbf63014f108aaff49e4382b7adc7d0a2b6365744
qlcnic: Initialize dcbnl_ops before register_netdev

o Initialization of dcbnl_ops after register netdev may result in
  dcbnl_ops not getting set before it is being accessed from open.
  So, moving it before register_netdev.

Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c