drm/rockchip: Do not use memcpy for MMIO addresses
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 20 Feb 2018 13:01:19 +0000 (13:01 +0000)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 14 Mar 2018 13:02:55 +0000 (14:02 +0100)
commit76f1416e6428dfcebba2134aa8c37963f8f71439
tree91d89334d942bfd3dd2379fa83e5423e65a4b052
parent5f9e93fed4d45e9a8f84728aff1a8f2ab8922902
drm/rockchip: Do not use memcpy for MMIO addresses

memcpy is only meant to be used for memory, and only that.
MMIO accessors should be used to access MMIO regions, preferably
the ones that correspond to the size of the register accessed.

Let's convert the bulk register copy to writel/readl_relaxed,
which is the correct API.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20180220130120.5254-3-marc.zyngier@arm.com
drivers/gpu/drm/rockchip/rockchip_drm_vop.c