/* Release the resources that where claimed for the hardware window, such as the framebuffer instance and any memory claimed for it.  */
static void s3c_fb_release_win(struct s3c_fb *sfb, struct s3c_fb_win *win)
/* Release the resources that where claimed for the hardware window, such as the framebuffer instance and any memory claimed for it.  */
static void s3c_fb_release_win(struct s3c_fb *sfb, struct s3c_fb_win *win)
{
	if (win->fbinfo) {
		unregister_framebuffer(win->fbinfo);
		fb_dealloc_cmap(&win->fbinfo->cmap);
		s3c_fb_free_memory(sfb, win);
		framebuffer_release(win->fbinfo);
	}
}