From: Axel Lin Date: Wed, 8 Jun 2011 06:56:42 +0000 (+0800) Subject: platform-drivers-x86: dell-laptop: Remove unneeded mutex_init() for buffer_mutex X-Git-Tag: v3.1~366^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2605d753e488330f61000f1b2dc72d1668fba4ac;p=platform%2Fkernel%2Flinux-amlogic.git platform-drivers-x86: dell-laptop: Remove unneeded mutex_init() for buffer_mutex DEFINE_MUTEX() will automatically initialize buffer_mutex, no need to call mutex_init() in dell_init(). Signed-off-by: Axel Lin Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c index e39ab1d..f31fa4e 100644 --- a/drivers/platform/x86/dell-laptop.c +++ b/drivers/platform/x86/dell-laptop.c @@ -612,7 +612,6 @@ static int __init dell_init(void) if (!bufferpage) goto fail_buffer; buffer = page_address(bufferpage); - mutex_init(&buffer_mutex); ret = dell_setup_rfkill();