* [PATCH] platform-drivers-x86: dell-laptop: Remove unneeded mutex_init() for buffer_mutex
@ 2011-06-08 6:56 Axel Lin
0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2011-06-08 6:56 UTC (permalink / raw)
To: linux-kernel; +Cc: Matthew Garrett, platform-driver-x86
DEFINE_MUTEX() will automatically initialize buffer_mutex,
no need to call mutex_init() in dell_init().
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/platform/x86/dell-laptop.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
index d3841de..dbe336e 100644
--- a/drivers/platform/x86/dell-laptop.c
+++ b/drivers/platform/x86/dell-laptop.c
@@ -632,7 +632,6 @@ static int __init dell_init(void)
if (!bufferpage)
goto fail_buffer;
buffer = page_address(bufferpage);
- mutex_init(&buffer_mutex);
ret = dell_setup_rfkill();
--
1.7.4.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-08 6:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-08 6:56 [PATCH] platform-drivers-x86: dell-laptop: Remove unneeded mutex_init() for buffer_mutex Axel Lin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.