]> git.baikalelectronics.ru Git - kernel.git/commit
can: SJA1000 add missing spin_lock_init()
authorOliver Hartkopp <socketcan@hartkopp.net>
Wed, 19 May 2010 06:46:38 +0000 (06:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 May 2010 06:21:45 +0000 (23:21 -0700)
commit14d822185d6e69fd7caf04ea7d75080208e55889
tree77930cd6a9c7ffb724cd14e99ddc16f75787afc5
parent867592cc27c94c908d179d7fab0232b56490ef28
can: SJA1000 add missing spin_lock_init()

As remarked by Sam Ravnborg the spin_lock variable, that has been introduced
in commit 5134a719d9986a9e9545b818f47eef089552bf86 ("can: Fix SJA1000 command
register writes on SMP systems") has not been initialized properly.

This patch adds the initialization to allow spinlock debugging.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
CC: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/sja1000/sja1000.c