mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51:27 +00:00
qla2x00t-32gbit: Unbreak the 32-bit build
Note: this is not an attempt to port this driver to 32-bit systems. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8991 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -746,7 +746,11 @@ static int qla82xx_pci_mem_read_direct(struct qla_hw_data *ha,
|
||||
*(u32 *)data = readl(addr);
|
||||
break;
|
||||
case 8:
|
||||
#ifdef CONFIG_64BIT
|
||||
*(u64 *)data = readq(addr);
|
||||
#else
|
||||
WARN_ON_ONCE(true);
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
ret = -1;
|
||||
@@ -817,7 +821,11 @@ qla82xx_pci_mem_write_direct(struct qla_hw_data *ha,
|
||||
writel(*(u32 *)data, addr);
|
||||
break;
|
||||
case 8:
|
||||
#ifdef CONFIG_64BIT
|
||||
writeq(*(u64 *)data, addr);
|
||||
#else
|
||||
WARN_ON_ONCE(true);
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
ret = -1;
|
||||
|
||||
Reference in New Issue
Block a user