From: Alan Cox Date: Wed, 28 Jun 2006 11:26:51 +0000 (-0700) Subject: [PATCH] stallion: fix recent SMP locking cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=effc8b704b48c3c727715abf49592a57547b6818;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] stallion: fix recent SMP locking cleanup Works better on SMP if... Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c index bf361a5ba70..00b4a218716 100644 --- a/drivers/char/stallion.c +++ b/drivers/char/stallion.c @@ -3029,6 +3029,9 @@ static int __init stl_init(void) int i; printk(KERN_INFO "%s: version %s\n", stl_drvtitle, stl_drvversion); + spin_lock_init(&stallion_lock); + spin_lock_init(&brd_lock); + stl_initbrds(); stl_serial = alloc_tty_driver(STL_MAXBRDS * STL_MAXPORTS);