diff options
Diffstat (limited to 'drivers/vme/bridges/vme_ca91cx42.c')
| -rw-r--r-- | drivers/vme/bridges/vme_ca91cx42.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vme/bridges/vme_ca91cx42.c b/drivers/vme/bridges/vme_ca91cx42.c index a06edbfa95ca..1b5d48c578e1 100644 --- a/drivers/vme/bridges/vme_ca91cx42.c +++ b/drivers/vme/bridges/vme_ca91cx42.c | |||
| @@ -884,7 +884,7 @@ static ssize_t ca91cx42_master_read(struct vme_master_resource *image, | |||
| 884 | if (done == count) | 884 | if (done == count) |
| 885 | goto out; | 885 | goto out; |
| 886 | } | 886 | } |
| 887 | if ((uintptr_t)addr & 0x2) { | 887 | if ((uintptr_t)(addr + done) & 0x2) { |
| 888 | if ((count - done) < 2) { | 888 | if ((count - done) < 2) { |
| 889 | *(u8 *)(buf + done) = ioread8(addr + done); | 889 | *(u8 *)(buf + done) = ioread8(addr + done); |
| 890 | done += 1; | 890 | done += 1; |
| @@ -938,7 +938,7 @@ static ssize_t ca91cx42_master_write(struct vme_master_resource *image, | |||
| 938 | if (done == count) | 938 | if (done == count) |
| 939 | goto out; | 939 | goto out; |
| 940 | } | 940 | } |
| 941 | if ((uintptr_t)addr & 0x2) { | 941 | if ((uintptr_t)(addr + done) & 0x2) { |
| 942 | if ((count - done) < 2) { | 942 | if ((count - done) < 2) { |
| 943 | iowrite8(*(u8 *)(buf + done), addr + done); | 943 | iowrite8(*(u8 *)(buf + done), addr + done); |
| 944 | done += 1; | 944 | done += 1; |
