summaryrefslogtreecommitdiffstats
path: root/drivers/misc/genwqe
diff options
context:
space:
mode:
authorFrank Haverkamp <haver@linux.vnet.ibm.com>2013-12-20 20:27:20 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-20 11:34:29 -0800
commita45a0258d1f817b60fcd5bc67dc7ef692f4615bb (patch)
tree1ca3ff0b3d989ffe1a7b7451e7541c9059ee00b4 /drivers/misc/genwqe
parent632fefaf1fff7c344191c363e08a43cf006fe60e (diff)
GenWQE: Accidently casting to u32 where u64 is required
Fix a casting to u32 where u64 would be appropriate. The bad casting made the driver unusable. Signed-off-by: Frank Haverkamp <haver@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/genwqe')
-rw-r--r--drivers/misc/genwqe/card_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/genwqe/card_utils.c b/drivers/misc/genwqe/card_utils.c
index 663157b3a0d..6b1a6ef9f1a 100644
--- a/drivers/misc/genwqe/card_utils.c
+++ b/drivers/misc/genwqe/card_utils.c
@@ -59,7 +59,7 @@ int __genwqe_writeq(struct genwqe_dev *cd, u64 byte_offs, u64 val)
if (cd->mmio == NULL)
return -EIO;
- __raw_writeq((__force u32)cpu_to_be64(val), cd->mmio + byte_offs);
+ __raw_writeq((__force u64)cpu_to_be64(val), cd->mmio + byte_offs);
return 0;
}