Commit 4ac0a807 authored by Thierry Reding's avatar Thierry Reding Committed by Ben Skeggs

drm/nouveau/drm/nouveau: tegra: Call nouveau_drm_device_init()

As part of commit cfea88a4 ("drm/nouveau: Start using new drm_dev
initialization helpers"), the initialization of the Nouveau DRM device
was reworked and along the way the platform driver initialization was
left incomplete. Add a call to nouveau_drm_device_init() to make sure
all of the structures are properly initialized.
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
Tested-by: default avatarMarcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 74a07c0a
...@@ -1171,10 +1171,16 @@ nouveau_platform_device_create(const struct nvkm_device_tegra_func *func, ...@@ -1171,10 +1171,16 @@ nouveau_platform_device_create(const struct nvkm_device_tegra_func *func,
goto err_free; goto err_free;
} }
err = nouveau_drm_device_init(drm);
if (err)
goto err_put;
platform_set_drvdata(pdev, drm); platform_set_drvdata(pdev, drm);
return drm; return drm;
err_put:
drm_dev_put(drm);
err_free: err_free:
nvkm_device_del(pdevice); nvkm_device_del(pdevice);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment