rockchip: px30: Fix build error
authorAmbroise Vincent <[email protected]>
Thu, 25 Jul 2019 15:06:50 +0000 (16:06 +0100)
committerAmbroise Vincent <[email protected]>
Thu, 25 Jul 2019 15:14:40 +0000 (16:14 +0100)
commit8a079e88d12860382193328e883e775765a6777f
tree290d3ddf26ec759c26d133768ab16c4eb6037d49
parent8b6394c95d820bd40e7b49fa1d3ea11c36f9e8d7
rockchip: px30: Fix build error

"result of '1 << 31' requires 33 bits to represent, but 'int' only has
32 bits [-Werror=shift-overflow=]"

This is treated as an error since commit 93c690eba8ca ("Enable
-Wshift-overflow=2 to check for undefined shift behavior")

Only the actual errors are being tackled by this patch. It is up to the
platform to choose whether there needs to be further modifications to
the code.

Change-Id: I70860ae5f2a34d7c684bd491b76da50aa04f778e
Signed-off-by: Ambroise Vincent <[email protected]>
plat/rockchip/px30/drivers/pmu/pmu.c