From: Axel Lin Date: Tue, 20 Mar 2012 08:32:39 +0000 (+0800) Subject: drivers/base: Remove unneeded spin_lock_init call for soc_lock X-Git-Tag: next-20120411~87^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=33cb4f345687a27e3fece0a7fcf78ac2e7b0a7d6;p=karo-tx-linux.git drivers/base: Remove unneeded spin_lock_init call for soc_lock soc_lock is already initialized by DEFINE_SPINLOCK. Signed-off-by: Axel Lin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/soc.c b/drivers/base/soc.c index 05f150382da8..f49346b9e961 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);