diff options
author | Kurt Van Dijck <kurt.van.dijck@eia.be> | 2013-03-07 13:25:53 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-15 12:29:00 -0700 |
commit | 7fced565e55be83a18a3b7bb64995515c61edd53 (patch) | |
tree | b4ae92cf35d8fb604bbba3ac7bb86b49e5683c95 | |
parent | fdd3f29eddd1b7c26b3b42e3633afcb22a28fcb3 (diff) | |
download | linux-3.10-7fced565e55be83a18a3b7bb64995515c61edd53.tar.gz linux-3.10-7fced565e55be83a18a3b7bb64995515c61edd53.tar.bz2 linux-3.10-7fced565e55be83a18a3b7bb64995515c61edd53.zip |
softingcs: initialize spinlock with macro
Signed-off-by: Kurt Van Dijck <kurt.van.dijck@eia.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/net/can/softing/softing_cs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/can/softing/softing_cs.c b/drivers/net/can/softing/softing_cs.c index c2c0a5bb0b2..77620543cd9 100644 --- a/drivers/net/can/softing/softing_cs.c +++ b/drivers/net/can/softing/softing_cs.c @@ -27,7 +27,7 @@ #include "softing_platform.h" static int softingcs_index; -static spinlock_t softingcs_index_lock; +static DEFINE_SPINLOCK(softingcs_index_lock); static int softingcs_reset(struct platform_device *pdev, int v); static int softingcs_enable_irq(struct platform_device *pdev, int v); @@ -342,7 +342,6 @@ static struct pcmcia_driver softingcs_driver = { static int __init softingcs_start(void) { - spin_lock_init(&softingcs_index_lock); return pcmcia_register_driver(&softingcs_driver); } |