[PATCH] chardev: GPIO for SCx200 & PC-8736x: use dev_dbg in common module
[firefly-linux-kernel-4.4.55.git] / drivers / char / moxa.c
index f43c2e04eadd3878d57126b154afa2b4cbdc74aa..01247cccb89f26cbb0d52b7dee3757c36c43db64 100644 (file)
@@ -301,7 +301,7 @@ static struct tty_operations moxa_ops = {
        .tiocmset = moxa_tiocmset,
 };
 
-static spinlock_t moxa_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(moxa_lock);
 
 #ifdef CONFIG_PCI
 static int moxa_get_PCI_conf(struct pci_dev *p, int board_type, moxa_board_conf * board)