bna: IOC uninit check and misc cleanup
authorRasesh Mody <rmody@brocade.com>
Thu, 23 Dec 2010 21:45:06 +0000 (21:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Dec 2010 03:16:01 +0000 (19:16 -0800)
commit2c7d38210ff8e65f8961699bce92c273c77d113c
treeec6a75c0c6d5f22a71e1e098b275677c07c1cee2
parentf7c0fa4cd5dcf58dd95b216d2c33444a3b4a44e0
bna: IOC uninit check and misc cleanup

Change Details:
- Added a check in ioc firmware lock function to see if IOC is
in BFI_IOC_UNINIT state or not. If it is not in UNINIT state
and the last IOC boot was not done by OS driver, force IOC state
to BFI_IOC_UNINIT
- Unused macro and API cleanup

Signed-off-by: Debashis Dutt <ddutt@brocade.com>
Signed-off-by: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bna/bfa_defs_mfg_comm.h
drivers/net/bna/bfa_ioc.c