drm/sun4i: backend: Create regmap after access is possible
authorChen-Yu Tsai <wens@csie.org>
Sat, 14 Oct 2017 04:02:47 +0000 (12:02 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 16 Oct 2017 07:53:50 +0000 (09:53 +0200)
commit8270249fbeaf0a37250b0c533fd3613886ca3493
tree916e29a1cf8a7e99108407dc9aad4ce82b37e01f
parente8afb7b67fbadfbb2b4fd74bf34566e64cbcbe6f
drm/sun4i: backend: Create regmap after access is possible

The backend has various clocks and reset controls that need to be
enabled and deasserted before register access is possible.

Move the creation of the regmap to after the clocks and reset controls
have been configured where it makes more sense.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171014040252.9621-3-wens@csie.org
drivers/gpu/drm/sun4i/sun4i_backend.c