softingcs: initialize spinlock with macro
authorKurt Van Dijck <kurt.van.dijck@eia.be>
Thu, 7 Mar 2013 12:25:53 +0000 (13:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Mar 2013 19:29:00 +0000 (12:29 -0700)
Signed-off-by: Kurt Van Dijck <kurt.van.dijck@eia.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/softing/softing_cs.c

index c2c0a5bb0b214c92d90f423c27bb394f66d5da9e..77620543cd911c2fcb390c46ca912f19cc922721 100644 (file)
@@ -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);
 }