diff mbox series

scsi: qla1280: Make checking for 64bit support consistent

Message ID 20200117115628.13219-1-tbogendoerfer@suse.de (mailing list archive)
State Mainlined
Commit 6ca67a8e7bed55389a0297647b6196910776971c
Headers show
Series scsi: qla1280: Make checking for 64bit support consistent | expand

Commit Message

Thomas Bogendoerfer Jan. 17, 2020, 11:56 a.m. UTC
Use #ifdef QLA_64BIT_PTR to check if 64bit support is enabled.
This fixes ("scsi: qla1280: Fix dma firmware download, if dma
address is 64bit").

Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
---
 drivers/scsi/qla1280.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin K. Petersen Jan. 20, 2020, 11:36 p.m. UTC | #1
Thomas,

> Use #ifdef QLA_64BIT_PTR to check if 64bit support is enabled.  This
> fixes ("scsi: qla1280: Fix dma firmware download, if dma address is
> 64bit").

Applied to 5.6/scsi-queue, thanks!
diff mbox series

Patch

diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c
index 607cbddcdd14..3337cd341d21 100644
--- a/drivers/scsi/qla1280.c
+++ b/drivers/scsi/qla1280.c
@@ -1699,7 +1699,7 @@  qla1280_load_firmware_pio(struct scsi_qla_host *ha)
 	return err;
 }
 
-#if QLA_64BIT_PTR
+#ifdef QLA_64BIT_PTR
 #define LOAD_CMD	MBC_LOAD_RAM_A64_ROM
 #define DUMP_CMD	MBC_DUMP_RAM_A64_ROM
 #define CMD_ARGS	(BIT_7 | BIT_6 | BIT_4 | BIT_3 | BIT_2 | BIT_1 | BIT_0)