drm/fb-helper: Automatically clean up fb_info
Noticed that everyone duplicates the same logic here and we could safe a few lines per driver. Yay for lots of drivers to make such tiny refactors worth-while! v2: Forgot to git add everything :( v3: Actually remove release_fbi (Sean, Emil, Chris) ... Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Sean Paul <seanpaul@chromium.org> Cc: Noralf Trønnes <noralf@tronnes.org> Cc: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170207161603.17611-1-daniel.vetter@ffwll.ch
Šī revīzija ir iekļauta:
@@ -99,7 +99,6 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper,
|
||||
VM_MAP, pgprot_writecombine(PAGE_KERNEL));
|
||||
if (!exynos_gem->kvaddr) {
|
||||
DRM_ERROR("failed to map pages to kernel space.\n");
|
||||
drm_fb_helper_release_fbi(helper);
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
@@ -272,7 +271,6 @@ static void exynos_drm_fbdev_destroy(struct drm_device *dev,
|
||||
}
|
||||
|
||||
drm_fb_helper_unregister_fbi(fb_helper);
|
||||
drm_fb_helper_release_fbi(fb_helper);
|
||||
|
||||
drm_fb_helper_fini(fb_helper);
|
||||
}
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user