Hi Daniel, Thank you for the patch. On Wed, Feb 19, 2020 at 11:21:10AM +0100, Daniel Vetter wrote: > It's right above the drm_dev_put(). > > Aside: Another driver with a bit much devm_kzalloc, which should > probably use drmm_kzalloc instead ... With the same comments as the one for the rcar-du patch taken into account, Reviewed-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> > Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxxx> > Cc: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> > Cc: Kieran Bingham <kieran.bingham+renesas@xxxxxxxxxxxxxxxx> > Cc: linux-renesas-soc@xxxxxxxxxxxxxxx > --- > drivers/gpu/drm/shmobile/shmob_drm_drv.c | 2 -- > drivers/gpu/drm/shmobile/shmob_drm_kms.c | 6 +++++- > 2 files changed, 5 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/shmobile/shmob_drm_drv.c b/drivers/gpu/drm/shmobile/shmob_drm_drv.c > index b8c0930959c7..ae9d6b8d3ca8 100644 > --- a/drivers/gpu/drm/shmobile/shmob_drm_drv.c > +++ b/drivers/gpu/drm/shmobile/shmob_drm_drv.c > @@ -192,7 +192,6 @@ static int shmob_drm_remove(struct platform_device *pdev) > > drm_dev_unregister(ddev); > drm_kms_helper_poll_fini(ddev); > - drm_mode_config_cleanup(ddev); > drm_irq_uninstall(ddev); > drm_dev_put(ddev); > > @@ -288,7 +287,6 @@ static int shmob_drm_probe(struct platform_device *pdev) > drm_irq_uninstall(ddev); > err_modeset_cleanup: > drm_kms_helper_poll_fini(ddev); > - drm_mode_config_cleanup(ddev); > err_free_drm_dev: > drm_dev_put(ddev); > > diff --git a/drivers/gpu/drm/shmobile/shmob_drm_kms.c b/drivers/gpu/drm/shmobile/shmob_drm_kms.c > index c51197b6fd85..e6e34bb75ba0 100644 > --- a/drivers/gpu/drm/shmobile/shmob_drm_kms.c > +++ b/drivers/gpu/drm/shmobile/shmob_drm_kms.c > @@ -126,7 +126,11 @@ static const struct drm_mode_config_funcs shmob_drm_mode_config_funcs = { > > int shmob_drm_modeset_init(struct shmob_drm_device *sdev) > { > - drm_mode_config_init(sdev->ddev); > + int ret; > + > + ret = drm_mode_config_init(sdev->ddev); > + if (ret) > + return ret; > > shmob_drm_crtc_create(sdev); > shmob_drm_encoder_create(sdev); -- Regards, Laurent Pinchart _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel