mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 18:54:09 +08:00
drm/vc4: Remove open-coded drm_connector_register_all()
drm_dev_register() will now register all known connectors, so we no longer have to do so manually. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Eric Anholt <eric@anholt.net> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: dri-devel@lists.freedesktop.org Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1466501283-19976-3-git-send-email-chris@chris-wilson.co.uk
This commit is contained in:
parent
6966e4826d
commit
398e97994f
@ -211,22 +211,10 @@ static int vc4_drm_bind(struct device *dev)
|
||||
if (ret < 0)
|
||||
goto unbind_all;
|
||||
|
||||
/* Connector registration has to occur after DRM device
|
||||
* registration, because it creates sysfs entries based on the
|
||||
* DRM device.
|
||||
*/
|
||||
list_for_each_entry(connector, &drm->mode_config.connector_list, head) {
|
||||
ret = drm_connector_register(connector);
|
||||
if (ret)
|
||||
goto unregister;
|
||||
}
|
||||
|
||||
vc4_kms_load(drm);
|
||||
|
||||
return 0;
|
||||
|
||||
unregister:
|
||||
drm_dev_unregister(drm);
|
||||
unbind_all:
|
||||
component_unbind_all(dev, drm);
|
||||
gem_destroy:
|
||||
|
Loading…
Reference in New Issue
Block a user