staging: olpc_dcon: move fb stuff info dcon_priv, and clean up fb handling
authorAndres Salomon <dilinger@queued.net>
Fri, 11 Feb 2011 01:48:38 +0000 (17:48 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 20:33:20 +0000 (12:33 -0800)
commit45bfe97276856b866dd73fdadb65fb928c0c9bc1
tree18e0ead9db71c7a98e0ea341341119a2ca66eecd
parentfeaa98b2a5e452d95624d3f217cf1aab9cd25db0
staging: olpc_dcon: move fb stuff info dcon_priv, and clean up fb handling

 - move fbinfo and ignore_fb_events into dcon_priv
 - add calls to {un,}lock_fb_info before calling fb_blank
 - fail to load the driver if there are no registered framebuffers

That last one fixes a potential oops, where if the dcon driver loads
without a framebuffer registered, fb_blank will end up being passed a
NULL (and will attempt to dereference it).

Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/olpc_dcon/olpc_dcon.c