From: Catalin Marinas <catalin.marinas@arm.com>
To: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Paul Mundt <lethal@linux-sh.org>, linux-kernel@vger.kernel.org
Subject: [PATCH] Initialise the struct fb_info mutexes in clcdfb_register()
Date: Tue, 07 Jul 2009 11:47:23 +0100 [thread overview]
Message-ID: <20090707104723.4019.40616.stgit@pc1117.cambridge.arm.com> (raw)
Commit 4148df9b0 moved the fb_info.lock and fb_info.mm_lock mutex
initialisation from register_framebuffer() to framebuffer_alloc().
However, the AMBA CLCD driver wraps the struct fb_info in the clcd_fb
structure, the latter being allocated with kzalloc.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Paul Mundt <lethal@linux-sh.org>
---
drivers/video/amba-clcd.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c
index fb8163d..d5848aa 100644
--- a/drivers/video/amba-clcd.c
+++ b/drivers/video/amba-clcd.c
@@ -360,6 +360,9 @@ static int clcdfb_register(struct clcd_fb *fb)
goto free_clk;
}
+ mutex_init(&fb->fb.lock);
+ mutex_init(&fb->fb.mm_lock);
+
fb->fb.fbops = &clcdfb_ops;
fb->fb.flags = FBINFO_FLAG_DEFAULT;
fb->fb.pseudo_palette = fb->cmap;
reply other threads:[~2009-07-07 10:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090707104723.4019.40616.stgit@pc1117.cambridge.arm.com \
--to=catalin.marinas@arm.com \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+kernel@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®