diff options
author | Frank Haverkamp <haver@linux.vnet.ibm.com> | 2013-12-20 14:27:20 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-20 14:34:29 -0500 |
commit | a45a0258d1f817b60fcd5bc67dc7ef692f4615bb (patch) | |
tree | 1ca3ff0b3d989ffe1a7b7451e7541c9059ee00b4 | |
parent | 632fefaf1fff7c344191c363e08a43cf006fe60e (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>
-rw-r--r-- | drivers/misc/genwqe/card_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/genwqe/card_utils.c b/drivers/misc/genwqe/card_utils.c index 663157b3a0d4..6b1a6ef9f1a8 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) | |||
59 | if (cd->mmio == NULL) | 59 | if (cd->mmio == NULL) |
60 | return -EIO; | 60 | return -EIO; |
61 | 61 | ||
62 | __raw_writeq((__force u32)cpu_to_be64(val), cd->mmio + byte_offs); | 62 | __raw_writeq((__force u64)cpu_to_be64(val), cd->mmio + byte_offs); |
63 | return 0; | 63 | return 0; |
64 | } | 64 | } |
65 | 65 | ||