Commit 3776541
[SCSI] qla2xxx: Fix for 32-bit platforms with 64-bit resources.
The driver stores the contents of PCI resources into unsigned
long's before ioremapping. This breaks on 32-bit platforms which
support 64-bit MMIO resources.
Correct code by removing the temporary variables used during MMIO
PIO mapping and using resource_size_t where applicable. Also
correct a small typo in a printk() where the wrong region number
was displayed.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>1 parent 43ef058 commit 3776541
2 files changed
+8
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2271 | 2271 | | |
2272 | 2272 | | |
2273 | 2273 | | |
2274 | | - | |
2275 | | - | |
| 2274 | + | |
2276 | 2275 | | |
2277 | 2276 | | |
2278 | 2277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1479 | 1479 | | |
1480 | 1480 | | |
1481 | 1481 | | |
1482 | | - | |
1483 | | - | |
| 1482 | + | |
1484 | 1483 | | |
1485 | 1484 | | |
1486 | 1485 | | |
| |||
1495 | 1494 | | |
1496 | 1495 | | |
1497 | 1496 | | |
1498 | | - | |
1499 | | - | |
1500 | | - | |
1501 | | - | |
| 1497 | + | |
| 1498 | + | |
1502 | 1499 | | |
1503 | 1500 | | |
1504 | 1501 | | |
| |||
1511 | 1508 | | |
1512 | 1509 | | |
1513 | 1510 | | |
1514 | | - | |
1515 | 1511 | | |
1516 | 1512 | | |
1517 | 1513 | | |
1518 | | - | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
1522 | | - | |
| 1514 | + | |
1523 | 1515 | | |
1524 | | - | |
| 1516 | + | |
1525 | 1517 | | |
1526 | 1518 | | |
1527 | 1519 | | |
1528 | | - | |
| 1520 | + | |
1529 | 1521 | | |
1530 | 1522 | | |
1531 | 1523 | | |
1532 | 1524 | | |
1533 | 1525 | | |
1534 | 1526 | | |
1535 | | - | |
| 1527 | + | |
1536 | 1528 | | |
1537 | 1529 | | |
1538 | 1530 | | |
| |||
0 commit comments