framebuffer.c (7147573a5ce499dec3979e6b524691d47e1288d5) framebuffer.c (362063619cf67c2c2fc2eb90951b2623cbb69a7c)
1/**************************************************************************
2 * Copyright (c) 2007-2011, Intel Corporation.
3 * All Rights Reserved.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

--- 576 unchanged lines hidden (view full) ---

585 if (fbdev->psb_fb_helper.fbdev) {
586 info = fbdev->psb_fb_helper.fbdev;
587 unregister_framebuffer(info);
588 if (info->cmap.len)
589 fb_dealloc_cmap(&info->cmap);
590 framebuffer_release(info);
591 }
592 drm_fb_helper_fini(&fbdev->psb_fb_helper);
1/**************************************************************************
2 * Copyright (c) 2007-2011, Intel Corporation.
3 * All Rights Reserved.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

--- 576 unchanged lines hidden (view full) ---

585 if (fbdev->psb_fb_helper.fbdev) {
586 info = fbdev->psb_fb_helper.fbdev;
587 unregister_framebuffer(info);
588 if (info->cmap.len)
589 fb_dealloc_cmap(&info->cmap);
590 framebuffer_release(info);
591 }
592 drm_fb_helper_fini(&fbdev->psb_fb_helper);
593 drm_framebuffer_unregister_private(&psbfb->base);
593 drm_framebuffer_cleanup(&psbfb->base);
594
595 if (psbfb->gtt)
596 drm_gem_object_unreference(&psbfb->gtt->gem);
597 return 0;
598}
599
600int psb_fbdev_init(struct drm_device *dev)

--- 201 unchanged lines hidden ---
594 drm_framebuffer_cleanup(&psbfb->base);
595
596 if (psbfb->gtt)
597 drm_gem_object_unreference(&psbfb->gtt->gem);
598 return 0;
599}
600
601int psb_fbdev_init(struct drm_device *dev)

--- 201 unchanged lines hidden ---