int drm_fb_helper_init(struct drm_device *dev,
struct drm_fb_helper *fb_helper)
{
- int ret;
-
- /*
- * If this is not the generic fbdev client, initialize a drm_client
- * without callbacks so we can use the modesets.
- */
- if (!fb_helper->client.funcs) {
- ret = drm_client_init(dev, &fb_helper->client, "drm_fb_helper", NULL);
- if (ret)
- return ret;
- }
-
dev->fb_helper = fb_helper;
return 0;
cancel_work_sync(&fb_helper->damage_work);
drm_fb_helper_release_info(fb_helper);
-
- if (!fb_helper->client.funcs)
- drm_client_release(&fb_helper->client);
}
EXPORT_SYMBOL(drm_fb_helper_fini);