aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2019-05-28 11:02:45 +0200
committerDaniel Vetter <[email protected]>2019-06-12 20:28:27 +0200
commit9ef373923756b96680853d5b93578986dd07169a (patch)
treed6656913e96a55fe3bf2ffa1b7c27919411775cf
parent34f31f14c477f3c27e0fa0899db1bb6648cf53ca (diff)
staging/olpc: lock_fb_info can't fail
Simply because olpc never unregisters the damn thing. It also registers the framebuffer directly by poking around in fbdev core internals, so it's all around rather broken. Signed-off-by: Daniel Vetter <[email protected]> Reviewed-by: Sam Ravnborg <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Maarten Lankhorst <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Jens Frederich <[email protected]> Cc: Daniel Drake <[email protected]> Cc: Jon Nettleton <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r--drivers/staging/olpc_dcon/olpc_dcon.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c
index 6b714f740ac3..a254238be181 100644
--- a/drivers/staging/olpc_dcon/olpc_dcon.c
+++ b/drivers/staging/olpc_dcon/olpc_dcon.c
@@ -250,11 +250,7 @@ static bool dcon_blank_fb(struct dcon_priv *dcon, bool blank)
int err;
console_lock();
- if (!lock_fb_info(dcon->fbinfo)) {
- console_unlock();
- dev_err(&dcon->client->dev, "unable to lock framebuffer\n");
- return false;
- }
+ lock_fb_info(dcon->fbinfo);
dcon->ignore_fb_events = true;
err = fb_blank(dcon->fbinfo,