diff options
author | Frank Haverkamp <haver@linux.vnet.ibm.com> | 2013-12-20 20:27:20 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-20 11:34:29 -0800 |
commit | a45a0258d1f817b60fcd5bc67dc7ef692f4615bb (patch) | |
tree | 1ca3ff0b3d989ffe1a7b7451e7541c9059ee00b4 /drivers | |
parent | 632fefaf1fff7c344191c363e08a43cf006fe60e (diff) | |
download | linux-a45a0258d1f817b60fcd5bc67dc7ef692f4615bb.tar.bz2 |
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')
-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) 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; } |