]> git.baikalelectronics.ru Git - kernel.git/commit
staging: fsl-mc/dpio: Fix incorrect casts
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Mon, 26 Feb 2018 16:28:04 +0000 (10:28 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2018 16:27:18 +0000 (17:27 +0100)
commita3ac0c0c1c292d90bf6ce630ea1c670f9e3f0fd1
treea5be84399e0d20d43f1ec4b53eb5b0b79b3a0113
parent1079815f1c3f56a81da9a7673531ac74bb8de6ab
staging: fsl-mc/dpio: Fix incorrect casts

The DPIO driver incorrectly assumes virtual addresses are always
64b long, which causes compiler errors when building for a 32b
platform.

Fix this by using explicit casts to uintptr_t where necessary.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/dpio/dpio-service.c
drivers/staging/fsl-mc/bus/dpio/qbman-portal.c