From: Bruno Prémont Date: Mon, 28 Jun 2010 20:33:27 +0000 (+0200) Subject: HID: picolcd: implement refcounting of framebuffer X-Git-Tag: v2.6.36-rc1~567^2~4^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=225b4590062008c9de22ed6e3a200f832d9bcdc8;p=pandora-kernel.git HID: picolcd: implement refcounting of framebuffer As our device may be hot-unplugged and framebuffer cannot handle this case by itself we need to keep track of usage count so as to release fb_info and framebuffer memory only after the last user has closed framebuffer. We need to do the freeing in a scheduled work as fb_release() is called with fb_info lock held. Signed-off-by: Bruno Prémont Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed