Skip to content

Commit

Permalink
softingcs: initialize spinlock with macro
Browse files Browse the repository at this point in the history
Signed-off-by: Kurt Van Dijck <kurt.van.dijck@eia.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Kurt Van Dijck authored and gregkh committed Mar 15, 2013
1 parent fdd3f29 commit 7fced56
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/can/softing/softing_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 7fced56

Please sign in to comment.