aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/firmware/Kconfig2
-rw-r--r--drivers/firmware/iscsi_ibft.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig
index a6c670b8ce52..d4ed8e98edf7 100644
--- a/drivers/firmware/Kconfig
+++ b/drivers/firmware/Kconfig
@@ -133,7 +133,7 @@ config ISCSI_BOOT_SYSFS
133config ISCSI_IBFT 133config ISCSI_IBFT
134 tristate "iSCSI Boot Firmware Table Attributes module" 134 tristate "iSCSI Boot Firmware Table Attributes module"
135 select ISCSI_BOOT_SYSFS 135 select ISCSI_BOOT_SYSFS
136 depends on ISCSI_IBFT_FIND 136 depends on ISCSI_IBFT_FIND && SCSI
137 default n 137 default n
138 help 138 help
139 This option enables support for detection and exposing of iSCSI 139 This option enables support for detection and exposing of iSCSI
diff --git a/drivers/firmware/iscsi_ibft.c b/drivers/firmware/iscsi_ibft.c
index 4f04ec0410a0..6148a1c67895 100644
--- a/drivers/firmware/iscsi_ibft.c
+++ b/drivers/firmware/iscsi_ibft.c
@@ -727,8 +727,10 @@ static void ibft_unregister(void)
727 727
728static void ibft_cleanup(void) 728static void ibft_cleanup(void)
729{ 729{
730 ibft_unregister(); 730 if (boot_kset) {
731 iscsi_boot_destroy_kset(boot_kset); 731 ibft_unregister();
732 iscsi_boot_destroy_kset(boot_kset);
733 }
732} 734}
733 735
734static void __exit ibft_exit(void) 736static void __exit ibft_exit(void)