Skip to contentSkip to conversation

drivers/base: Remove unneeded spin_lock_init call for soc_lock

PATCH New Axel Lin 1 participant 1 message Mar 20, 2012 Driver core

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 drivers/base: Remove unneeded spin_lock_init call for soc_lock

soc_lock is already initialized by DEFINE_SPINLOCK.

---
 drivers/base/soc.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/base/soc.c +0 -2
index e57aec1..ba29b2e 100644
@@ -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);
Signature · 1 line
1.7.5.4