From: Ard Biesheuvel Date: Thu, 23 Jan 2020 08:17:48 +0000 (+0100) Subject: scsi: iscsi: Use EFI GetVariable only when available X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=69f4cab134d204f0260d69ae407a2562e56a5025;p=linux.git scsi: iscsi: Use EFI GetVariable only when available Replace the EFI runtime services check with one that tells us whether EFI GetVariable() is implemented by the firmware. Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org Signed-off-by: Ard Biesheuvel --- diff --git a/drivers/scsi/isci/init.c b/drivers/scsi/isci/init.c index b48aac8dfcb82..974c3b9116d5b 100644 --- a/drivers/scsi/isci/init.c +++ b/drivers/scsi/isci/init.c @@ -621,7 +621,7 @@ static int isci_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) return -ENOMEM; pci_set_drvdata(pdev, pci_info); - if (efi_enabled(EFI_RUNTIME_SERVICES)) + if (efi_rt_services_supported(EFI_RT_SUPPORTED_GET_VARIABLE)) orom = isci_get_efi_var(pdev); if (!orom)