commit | 225b4590062008c9de22ed6e3a200f832d9bcdc8 | [log] [tgz] |
---|---|---|
author | Bruno Prémont <bonbons@linux-vserver.org> | Mon Jun 28 22:33:27 2010 +0200 |
committer | Jiri Kosina <jkosina@suse.cz> | Mon Jul 12 18:07:36 2010 +0200 |
tree | 8a566370c1a31457fc9c9fb961d8e61d71f76ecf | |
parent | 365f1fcd0d5a40f933bed55e515fce2077c40e9a [diff] |
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 <bonbons@linux-vserver.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>