]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Call drm_dev_register() after all setup is done
authorNoralf Trønnes <noralf@tronnes.org>
Tue, 26 Mar 2019 17:55:46 +0000 (18:55 +0100)
committerNoralf Trønnes <noralf@tronnes.org>
Wed, 3 Apr 2019 09:09:45 +0000 (11:09 +0200)
commit7ece983667101cfb643d18c703c88db365ffa9c8
tree2c1ed0457fb6b763331df6c25d4081fa35708d91
parent0b1d9d066060c0756475f800977fe698ff13120f
drm/vc4: Call drm_dev_register() after all setup is done

drm_dev_register() initializes internal clients like bootsplash as the
last thing it does, so all setup needs to be done at this point.

Fix by calling vc4_kms_load() before registering.
Also check the error code returned from that function.

Cc: Eric Anholt <eric@anholt.net>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20190326175546.18126-17-noralf@tronnes.org
drivers/gpu/drm/vc4/vc4_drv.c