aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfad_im_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/bfa/bfad_im_compat.h')
-rw-r--r--drivers/scsi/bfa/bfad_im_compat.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/scsi/bfa/bfad_im_compat.h b/drivers/scsi/bfa/bfad_im_compat.h
index b36be15044a4..0a122abbbe89 100644
--- a/drivers/scsi/bfa/bfad_im_compat.h
+++ b/drivers/scsi/bfa/bfad_im_compat.h
@@ -18,9 +18,6 @@
18#ifndef __BFAD_IM_COMPAT_H__ 18#ifndef __BFAD_IM_COMPAT_H__
19#define __BFAD_IM_COMPAT_H__ 19#define __BFAD_IM_COMPAT_H__
20 20
21extern u32 *bfi_image_buf;
22extern u32 bfi_image_size;
23
24extern struct device_attribute *bfad_im_host_attrs[]; 21extern struct device_attribute *bfad_im_host_attrs[];
25extern struct device_attribute *bfad_im_vport_attrs[]; 22extern struct device_attribute *bfad_im_vport_attrs[];
26 23
@@ -37,10 +34,12 @@ bfad_load_fwimg(struct pci_dev *pdev)
37static inline void 34static inline void
38bfad_free_fwimg(void) 35bfad_free_fwimg(void)
39{ 36{
40 if (bfi_image_ct_size && bfi_image_ct) 37 if (bfi_image_ct_fc_size && bfi_image_ct_fc)
41 vfree(bfi_image_ct); 38 vfree(bfi_image_ct_fc);
42 if (bfi_image_cb_size && bfi_image_cb) 39 if (bfi_image_ct_cna_size && bfi_image_ct_cna)
43 vfree(bfi_image_cb); 40 vfree(bfi_image_ct_cna);
41 if (bfi_image_cb_fc_size && bfi_image_cb_fc)
42 vfree(bfi_image_cb_fc);
44} 43}
45 44
46#endif 45#endif