diff options
author | Ioana Radulescu <ruxandra.radulescu@nxp.com> | 2018-03-06 20:43:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-08 20:56:15 +0300 |
commit | c674f4aab45d702bdc18288646ddc6c348589d98 (patch) | |
tree | e669837faeacf435ea13900f18edceef5cdaabf2 /drivers/staging/fsl-mc | |
parent | 819fa2a0d7493ef9610bd3babda8b6c623a4c3d7 (diff) | |
download | linux-c674f4aab45d702bdc18288646ddc6c348589d98.tar.xz |
staging: fsl-mc/dpio: Fix incorrect cast
Move the cast in dpaa2_sg_get_addr() to the right place.
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fsl-mc')
-rw-r--r-- | drivers/staging/fsl-mc/include/dpaa2-fd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fsl-mc/include/dpaa2-fd.h b/drivers/staging/fsl-mc/include/dpaa2-fd.h index 3e022001f0b1..70501d7789c0 100644 --- a/drivers/staging/fsl-mc/include/dpaa2-fd.h +++ b/drivers/staging/fsl-mc/include/dpaa2-fd.h @@ -287,7 +287,7 @@ enum dpaa2_sg_format { */ static inline dma_addr_t dpaa2_sg_get_addr(const struct dpaa2_sg_entry *sg) { - return le64_to_cpu((dma_addr_t)sg->addr); + return (dma_addr_t)le64_to_cpu(sg->addr); } /** |