infiniband: hfi1: Use EFI GetVariable only when available
authorArd Biesheuvel <ardb@kernel.org>
Thu, 23 Jan 2020 08:16:02 +0000 (09:16 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 23 Feb 2020 20:59:42 +0000 (21:59 +0100)
commitd79b348c3540611552fc5fb87565228925fb1fd8
tree211e74956b7699a41aec7558f355daaee0329f1a
parente5c3b1cc99451d97ed3b94aff09817c66c040399
infiniband: hfi1: 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: Mike Marciniszyn <mike.marciniszyn@intel.com>
Cc: Dennis Dalessandro <dennis.dalessandro@intel.com>
Cc: Doug Ledford <dledford@redhat.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: linux-rdma@vger.kernel.org
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/infiniband/hw/hfi1/efivar.c