Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a45a0258 authored by Frank Haverkamp's avatar Frank Haverkamp Committed by Greg Kroah-Hartman
Browse files

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: default avatarFrank Haverkamp <haver@linux.vnet.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 632fefaf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}