Commit 076fa0fa authored by Milind Arun Choudhary's avatar Milind Arun Choudhary Committed by Linus Torvalds

SPIN_LOCK_UNLOCKED cleanup in drivers/serial

SPIN_LOCK_UNLOCKED cleanup,use __SPIN_LOCK_UNLOCKED instead
Signed-off-by: default avatarMilind Arun Choudhary <milindchoudhary@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ccc94256
...@@ -934,7 +934,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = { ...@@ -934,7 +934,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = {
.irq = SMC1_IRQ, .irq = SMC1_IRQ,
.ops = &cpm_uart_pops, .ops = &cpm_uart_pops,
.iotype = UPIO_MEM, .iotype = UPIO_MEM,
.lock = SPIN_LOCK_UNLOCKED, .lock = __SPIN_LOCK_UNLOCKED(cpm_uart_ports[UART_SMC1].port.lock),
}, },
.flags = FLAG_SMC, .flags = FLAG_SMC,
.tx_nrfifos = TX_NUM_FIFO, .tx_nrfifos = TX_NUM_FIFO,
...@@ -948,7 +948,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = { ...@@ -948,7 +948,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = {
.irq = SMC2_IRQ, .irq = SMC2_IRQ,
.ops = &cpm_uart_pops, .ops = &cpm_uart_pops,
.iotype = UPIO_MEM, .iotype = UPIO_MEM,
.lock = SPIN_LOCK_UNLOCKED, .lock = __SPIN_LOCK_UNLOCKED(cpm_uart_ports[UART_SMC2].port.lock),
}, },
.flags = FLAG_SMC, .flags = FLAG_SMC,
.tx_nrfifos = TX_NUM_FIFO, .tx_nrfifos = TX_NUM_FIFO,
...@@ -965,7 +965,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = { ...@@ -965,7 +965,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = {
.irq = SCC1_IRQ, .irq = SCC1_IRQ,
.ops = &cpm_uart_pops, .ops = &cpm_uart_pops,
.iotype = UPIO_MEM, .iotype = UPIO_MEM,
.lock = SPIN_LOCK_UNLOCKED, .lock = __SPIN_LOCK_UNLOCKED(cpm_uart_ports[UART_SCC1].port.lock),
}, },
.tx_nrfifos = TX_NUM_FIFO, .tx_nrfifos = TX_NUM_FIFO,
.tx_fifosize = TX_BUF_SIZE, .tx_fifosize = TX_BUF_SIZE,
...@@ -979,7 +979,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = { ...@@ -979,7 +979,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = {
.irq = SCC2_IRQ, .irq = SCC2_IRQ,
.ops = &cpm_uart_pops, .ops = &cpm_uart_pops,
.iotype = UPIO_MEM, .iotype = UPIO_MEM,
.lock = SPIN_LOCK_UNLOCKED, .lock = __SPIN_LOCK_UNLOCKED(cpm_uart_ports[UART_SCC2].port.lock),
}, },
.tx_nrfifos = TX_NUM_FIFO, .tx_nrfifos = TX_NUM_FIFO,
.tx_fifosize = TX_BUF_SIZE, .tx_fifosize = TX_BUF_SIZE,
...@@ -993,7 +993,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = { ...@@ -993,7 +993,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = {
.irq = SCC3_IRQ, .irq = SCC3_IRQ,
.ops = &cpm_uart_pops, .ops = &cpm_uart_pops,
.iotype = UPIO_MEM, .iotype = UPIO_MEM,
.lock = SPIN_LOCK_UNLOCKED, .lock = __SPIN_LOCK_UNLOCKED(cpm_uart_ports[UART_SCC3].port.lock),
}, },
.tx_nrfifos = TX_NUM_FIFO, .tx_nrfifos = TX_NUM_FIFO,
.tx_fifosize = TX_BUF_SIZE, .tx_fifosize = TX_BUF_SIZE,
...@@ -1007,7 +1007,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = { ...@@ -1007,7 +1007,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = {
.irq = SCC4_IRQ, .irq = SCC4_IRQ,
.ops = &cpm_uart_pops, .ops = &cpm_uart_pops,
.iotype = UPIO_MEM, .iotype = UPIO_MEM,
.lock = SPIN_LOCK_UNLOCKED, .lock = __SPIN_LOCK_UNLOCKED(cpm_uart_ports[UART_SCC4].port.lock),
}, },
.tx_nrfifos = TX_NUM_FIFO, .tx_nrfifos = TX_NUM_FIFO,
.tx_fifosize = TX_BUF_SIZE, .tx_fifosize = TX_BUF_SIZE,
......
...@@ -957,7 +957,7 @@ static struct uart_driver s3c24xx_uart_drv = { ...@@ -957,7 +957,7 @@ static struct uart_driver s3c24xx_uart_drv = {
static struct s3c24xx_uart_port s3c24xx_serial_ports[NR_PORTS] = { static struct s3c24xx_uart_port s3c24xx_serial_ports[NR_PORTS] = {
[0] = { [0] = {
.port = { .port = {
.lock = SPIN_LOCK_UNLOCKED, .lock = __SPIN_LOCK_UNLOCKED(s3c24xx_serial_ports[0].port.lock),
.iotype = UPIO_MEM, .iotype = UPIO_MEM,
.irq = IRQ_S3CUART_RX0, .irq = IRQ_S3CUART_RX0,
.uartclk = 0, .uartclk = 0,
...@@ -969,7 +969,7 @@ static struct s3c24xx_uart_port s3c24xx_serial_ports[NR_PORTS] = { ...@@ -969,7 +969,7 @@ static struct s3c24xx_uart_port s3c24xx_serial_ports[NR_PORTS] = {
}, },
[1] = { [1] = {
.port = { .port = {
.lock = SPIN_LOCK_UNLOCKED, .lock = __SPIN_LOCK_UNLOCKED(s3c24xx_serial_ports[1].port.lock),
.iotype = UPIO_MEM, .iotype = UPIO_MEM,
.irq = IRQ_S3CUART_RX1, .irq = IRQ_S3CUART_RX1,
.uartclk = 0, .uartclk = 0,
...@@ -983,7 +983,7 @@ static struct s3c24xx_uart_port s3c24xx_serial_ports[NR_PORTS] = { ...@@ -983,7 +983,7 @@ static struct s3c24xx_uart_port s3c24xx_serial_ports[NR_PORTS] = {
[2] = { [2] = {
.port = { .port = {
.lock = SPIN_LOCK_UNLOCKED, .lock = __SPIN_LOCK_UNLOCKED(s3c24xx_serial_ports[2].port.lock),
.iotype = UPIO_MEM, .iotype = UPIO_MEM,
.irq = IRQ_S3CUART_RX2, .irq = IRQ_S3CUART_RX2,
.uartclk = 0, .uartclk = 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment