drm/nouveau: tegra: Call nouveau_drm_device_init()
Subsystems (4)
PATCH 1/1 drm/nouveau: tegra: Call nouveau_drm_device_init()
From: Thierry Reding <[email protected]>
As part of commit cfea88a4d866 ("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.
--- drivers/gpu/drm/nouveau/nouveau_drm.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/nouveau/nouveau_drm.c +6 -0
@@ -1171,10 +1171,16 @@ nouveau_platform_device_create(const struct nvkm_device_tegra_func *func, goto err_free; } + err =nouveau_drm_device_init (drm); +if (err) + goto err_put; +platform_set_drvdata (pdev, drm);return drm; +err_put: +drm_dev_put (drm); err_free:nvkm_device_del (pdevice);
Signature · 6 lines
2.19.1 _______________________________________________ Nouveau mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/nouveau
Looks good to me
Quoted 36 lines · Thierry Reding
From: Thierry Reding <[email protected]>
As part of commit
cfea88a4d866("drm/nouveau: Start using newdrm_devinitialization helpers"), the initialization of the Nouveau DRM device was reworked and along the way the platform driver initialization was left incomplete. Add a call tonouveau_drm_device_init()to make sure all of the structures are properly initialized.Signed-off-by Thierry Reding <[email protected]>--- drivers/gpu/drm/nouveau/nouveau_drm.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/gpu/drm/nouveau/nouveau_drm.c +6
-0@@ -1171,10 +1171,16 @@ nouveau_platform_device_create(const structnvkm_device_tegra_func *func, goto err_free; } + err =nouveau_drm_device_init (drm); +if (err) + goto err_put; +platform_set_drvdata (pdev, drm);return drm; +err_put: +drm_dev_put (drm); err_free:nvkm_device_del (pdevice);
Signature · 7 lines
Cheers, Lyude Paul _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 11 lines · Thierry Reding
From: Thierry Reding <[email protected]>
As part of commit
cfea88a4d866("drm/nouveau: Start using newdrm_devinitialization helpers"), the initialization of the Nouveau DRM device
was reworked and along the way the platform driver initialization was left incomplete. Add a call tonouveau_drm_device_init()to make sure all of the structures are properly initialized.Signed-off-by Thierry Reding <[email protected]>Reviewed-by Lyude Paul <[email protected]>
Quoted 16 lines
--- drivers/gpu/drm/nouveau/nouveau_drm.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/gpu/drm/nouveau/nouveau_drm.c +2
-0@@ -1171,10 +1171,16 @@ nouveau_platform_device_create(const structnvkm_device_tegra_func *func, goto err_free; } + err =nouveau_drm_device_init (drm); +if (err)
drivers/gpu/drm/nouveau/nouveau_drm.c nouveau_platform_device_create(const struct · line 1186
Quoted 10 lines
drivers/gpu/drm/nouveau/nouveau_drm.c +4
-0+ goto err_put; +platform_set_drvdata (pdev, drm);return drm; +err_put: +drm_dev_put (drm); err_free:nvkm_device_del (pdevice);
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel