diff options
author | Milind Arun Choudhary <milindchoudhary@gmail.com> | 2007-05-08 03:30:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:11 -0400 |
commit | 076fa0fa2d53046d32f5157022d683b8027f05ed (patch) | |
tree | 3b9fe38c1772a8c9b5d64bfe4eeb215213368830 /drivers/serial | |
parent | ccc942567e10d6a5d59c4d57f03d07b4110611ea (diff) |
SPIN_LOCK_UNLOCKED cleanup in drivers/serial
SPIN_LOCK_UNLOCKED cleanup,use __SPIN_LOCK_UNLOCKED instead
Signed-off-by: Milind Arun Choudhary <milindchoudhary@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/cpm_uart/cpm_uart_core.c | 12 | ||||
-rw-r--r-- | drivers/serial/s3c2410.c | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/serial/cpm_uart/cpm_uart_core.c b/drivers/serial/cpm_uart/cpm_uart_core.c index 7a3b97fdf8d1..f23972bc00c0 100644 --- a/drivers/serial/cpm_uart/cpm_uart_core.c +++ b/drivers/serial/cpm_uart/cpm_uart_core.c | |||
@@ -934,7 +934,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = { | |||
934 | .irq = SMC1_IRQ, | 934 | .irq = SMC1_IRQ, |
935 | .ops = &cpm_uart_pops, | 935 | .ops = &cpm_uart_pops, |
936 | .iotype = UPIO_MEM, | 936 | .iotype = UPIO_MEM, |
937 | .lock = SPIN_LOCK_UNLOCKED, | 937 | .lock = __SPIN_LOCK_UNLOCKED(cpm_uart_ports[UART_SMC1].port.lock), |
938 | }, | 938 | }, |
939 | .flags = FLAG_SMC, | 939 | .flags = FLAG_SMC, |
940 | .tx_nrfifos = TX_NUM_FIFO, | 940 | .tx_nrfifos = TX_NUM_FIFO, |
@@ -948,7 +948,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = { | |||
948 | .irq = SMC2_IRQ, | 948 | .irq = SMC2_IRQ, |
949 | .ops = &cpm_uart_pops, | 949 | .ops = &cpm_uart_pops, |
950 | .iotype = UPIO_MEM, | 950 | .iotype = UPIO_MEM, |
951 | .lock = SPIN_LOCK_UNLOCKED, | 951 | .lock = __SPIN_LOCK_UNLOCKED(cpm_uart_ports[UART_SMC2].port.lock), |
952 | }, | 952 | }, |
953 | .flags = FLAG_SMC, | 953 | .flags = FLAG_SMC, |
954 | .tx_nrfifos = TX_NUM_FIFO, | 954 | .tx_nrfifos = TX_NUM_FIFO, |
@@ -965,7 +965,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = { | |||
965 | .irq = SCC1_IRQ, | 965 | .irq = SCC1_IRQ, |
966 | .ops = &cpm_uart_pops, | 966 | .ops = &cpm_uart_pops, |
967 | .iotype = UPIO_MEM, | 967 | .iotype = UPIO_MEM, |
968 | .lock = SPIN_LOCK_UNLOCKED, | 968 | .lock = __SPIN_LOCK_UNLOCKED(cpm_uart_ports[UART_SCC1].port.lock), |
969 | }, | 969 | }, |
970 | .tx_nrfifos = TX_NUM_FIFO, | 970 | .tx_nrfifos = TX_NUM_FIFO, |
971 | .tx_fifosize = TX_BUF_SIZE, | 971 | .tx_fifosize = TX_BUF_SIZE, |
@@ -979,7 +979,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = { | |||
979 | .irq = SCC2_IRQ, | 979 | .irq = SCC2_IRQ, |
980 | .ops = &cpm_uart_pops, | 980 | .ops = &cpm_uart_pops, |
981 | .iotype = UPIO_MEM, | 981 | .iotype = UPIO_MEM, |
982 | .lock = SPIN_LOCK_UNLOCKED, | 982 | .lock = __SPIN_LOCK_UNLOCKED(cpm_uart_ports[UART_SCC2].port.lock), |
983 | }, | 983 | }, |
984 | .tx_nrfifos = TX_NUM_FIFO, | 984 | .tx_nrfifos = TX_NUM_FIFO, |
985 | .tx_fifosize = TX_BUF_SIZE, | 985 | .tx_fifosize = TX_BUF_SIZE, |
@@ -993,7 +993,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = { | |||
993 | .irq = SCC3_IRQ, | 993 | .irq = SCC3_IRQ, |
994 | .ops = &cpm_uart_pops, | 994 | .ops = &cpm_uart_pops, |
995 | .iotype = UPIO_MEM, | 995 | .iotype = UPIO_MEM, |
996 | .lock = SPIN_LOCK_UNLOCKED, | 996 | .lock = __SPIN_LOCK_UNLOCKED(cpm_uart_ports[UART_SCC3].port.lock), |
997 | }, | 997 | }, |
998 | .tx_nrfifos = TX_NUM_FIFO, | 998 | .tx_nrfifos = TX_NUM_FIFO, |
999 | .tx_fifosize = TX_BUF_SIZE, | 999 | .tx_fifosize = TX_BUF_SIZE, |
@@ -1007,7 +1007,7 @@ struct uart_cpm_port cpm_uart_ports[UART_NR] = { | |||
1007 | .irq = SCC4_IRQ, | 1007 | .irq = SCC4_IRQ, |
1008 | .ops = &cpm_uart_pops, | 1008 | .ops = &cpm_uart_pops, |
1009 | .iotype = UPIO_MEM, | 1009 | .iotype = UPIO_MEM, |
1010 | .lock = SPIN_LOCK_UNLOCKED, | 1010 | .lock = __SPIN_LOCK_UNLOCKED(cpm_uart_ports[UART_SCC4].port.lock), |
1011 | }, | 1011 | }, |
1012 | .tx_nrfifos = TX_NUM_FIFO, | 1012 | .tx_nrfifos = TX_NUM_FIFO, |
1013 | .tx_fifosize = TX_BUF_SIZE, | 1013 | .tx_fifosize = TX_BUF_SIZE, |
diff --git a/drivers/serial/s3c2410.c b/drivers/serial/s3c2410.c index 3ba9208ebd0c..10bc0209cd66 100644 --- a/drivers/serial/s3c2410.c +++ b/drivers/serial/s3c2410.c | |||
@@ -957,7 +957,7 @@ static struct uart_driver s3c24xx_uart_drv = { | |||
957 | static struct s3c24xx_uart_port s3c24xx_serial_ports[NR_PORTS] = { | 957 | static struct s3c24xx_uart_port s3c24xx_serial_ports[NR_PORTS] = { |
958 | [0] = { | 958 | [0] = { |
959 | .port = { | 959 | .port = { |
960 | .lock = SPIN_LOCK_UNLOCKED, | 960 | .lock = __SPIN_LOCK_UNLOCKED(s3c24xx_serial_ports[0].port.lock), |
961 | .iotype = UPIO_MEM, | 961 | .iotype = UPIO_MEM, |
962 | .irq = IRQ_S3CUART_RX0, | 962 | .irq = IRQ_S3CUART_RX0, |
963 | .uartclk = 0, | 963 | .uartclk = 0, |
@@ -969,7 +969,7 @@ static struct s3c24xx_uart_port s3c24xx_serial_ports[NR_PORTS] = { | |||
969 | }, | 969 | }, |
970 | [1] = { | 970 | [1] = { |
971 | .port = { | 971 | .port = { |
972 | .lock = SPIN_LOCK_UNLOCKED, | 972 | .lock = __SPIN_LOCK_UNLOCKED(s3c24xx_serial_ports[1].port.lock), |
973 | .iotype = UPIO_MEM, | 973 | .iotype = UPIO_MEM, |
974 | .irq = IRQ_S3CUART_RX1, | 974 | .irq = IRQ_S3CUART_RX1, |
975 | .uartclk = 0, | 975 | .uartclk = 0, |
@@ -983,7 +983,7 @@ static struct s3c24xx_uart_port s3c24xx_serial_ports[NR_PORTS] = { | |||
983 | 983 | ||
984 | [2] = { | 984 | [2] = { |
985 | .port = { | 985 | .port = { |
986 | .lock = SPIN_LOCK_UNLOCKED, | 986 | .lock = __SPIN_LOCK_UNLOCKED(s3c24xx_serial_ports[2].port.lock), |
987 | .iotype = UPIO_MEM, | 987 | .iotype = UPIO_MEM, |
988 | .irq = IRQ_S3CUART_RX2, | 988 | .irq = IRQ_S3CUART_RX2, |
989 | .uartclk = 0, | 989 | .uartclk = 0, |