drm/i915: Map registers before GTT init
authorBen Widawsky <ben@bwidawsk.net>
Tue, 9 Apr 2013 01:43:49 +0000 (18:43 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 18 Apr 2013 07:43:12 +0000 (09:43 +0200)
commit1e1bd0fd4ef3f74f05e4c164eb57a3b29c5f6790
tree06d6b6df7e9bd411b47b2eba320be83cc791743f
parente7c2b58b700f467eedcbd1c8d7a3d4bada403439
drm/i915: Map registers before GTT init

This will allow us to read/write registers in GTT init.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
[danvet: Fix up error handling. We really should look into devres for
this stuff ...]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c