Displaying 2 results from an estimated 2 matches for "err_drm_client_init".
2024 Sep 26
1
[PATCH v5 79/80] drm/omapdrm: Remove struct drm_fb_helper from struct omap_fbdev.
...= kzalloc(sizeof(*helper), GFP_KERNEL);
> + if (!helper)
> + return;
> drm_fb_helper_prepare(dev, helper, 32, &omap_fb_helper_funcs);
>
> ret = drm_client_init(dev, &helper->client, "fbdev", &omap_fbdev_client_funcs);
> if (ret)
> goto err_drm_client_init;
>
> - INIT_WORK(&fbdev->work, pan_worker);
> -
> drm_client_register(&helper->client);
>
> return;
>
> err_drm_client_init:
> drm_fb_helper_unprepare(helper);
> - kfree(fbdev);
> + kfree(helper);
> }
2024 Aug 21
1
[PATCH v2 78/86] drm/radeon: Run DRM default client setup
...gt;ddev, fb_helper, bpp_sel, &radeon_fbdev_fb_helper_funcs);
-
- ret = drm_client_init(rdev->ddev, &fb_helper->client, "radeon-fbdev",
- &radeon_fbdev_client_funcs);
- if (ret) {
- drm_err(rdev->ddev, "Failed to register client: %d\n", ret);
- goto err_drm_client_init;
- }
-
- drm_client_register(&fb_helper->client);
-
- return;
-
-err_drm_client_init:
- drm_fb_helper_unprepare(fb_helper);
- kfree(fb_helper);
-}
-
void radeon_fbdev_set_suspend(struct radeon_device *rdev, int state)
{
if (rdev->ddev->fb_helper)
diff --git a/drivers/gpu/drm/radeon...