Skip to content

Commit

Permalink
drivers/base: Remove unneeded spin_lock_init call for soc_lock
Browse files Browse the repository at this point in the history
soc_lock is already initialized by DEFINE_SPINLOCK.

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
AxelLin authored and gregkh committed Apr 9, 2012
1 parent 0034102 commit 33cb4f3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/base/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 33cb4f3

Please sign in to comment.