* [PATCH] drivers/base: Remove unneeded spin_lock_init call for soc_lock
@ 2012-03-20 8:32 Axel Lin
0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2012-03-20 8:32 UTC (permalink / raw)
To: linux-kernel; +Cc: Lee Jones, Greg Kroah-Hartman
soc_lock is already initialized by DEFINE_SPINLOCK.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/base/soc.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/base/soc.c b/drivers/base/soc.c
index e57aec1..ba29b2e 100644
--- a/drivers/base/soc.c
+++ b/drivers/base/soc.c
@@ -168,8 +168,6 @@ void soc_device_unregister(struct soc_device *soc_dev)
static int __init soc_bus_register(void)
{
- spin_lock_init(&soc_lock);
-
return bus_register(&soc_bus_type);
}
core_initcall(soc_bus_register);
--
1.7.5.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-03-20 8:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-20 8:32 [PATCH] drivers/base: Remove unneeded spin_lock_init call for soc_lock Axel Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox