aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorMike Frysinger <vapier.adi@gmail.com>2008-10-13 05:33:16 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-13 12:51:38 -0400
commitc9607ecc6ee50445e4d6bd3165f372a0f20f91ce (patch)
tree5f9f858516645f50ae46dc71bdb0ed8ed80a5687 /arch/blackfin
parentd273e201717af57ae56299ef1e6e2f7a1f812020 (diff)
Blackfin Serial Driver: move common variables out of serial headers and into the serial driver
move common variables out of serial headers and into the serial driver and rename "nr_ports" to "nr_active_ports" so as to easily differentiate between BFIN_UART_NR_PORTS (the # of available) and nr_ports (the # of enabled) Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org> Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/mach-bf527/include/mach/bfin_serial_5xx.h3
-rw-r--r--arch/blackfin/mach-bf533/include/mach/bfin_serial_5xx.h2
-rw-r--r--arch/blackfin/mach-bf537/include/mach/bfin_serial_5xx.h3
-rw-r--r--arch/blackfin/mach-bf548/include/mach/bfin_serial_5xx.h3
-rw-r--r--arch/blackfin/mach-bf561/include/mach/bfin_serial_5xx.h2
5 files changed, 0 insertions, 13 deletions
diff --git a/arch/blackfin/mach-bf527/include/mach/bfin_serial_5xx.h b/arch/blackfin/mach-bf527/include/mach/bfin_serial_5xx.h
index 2526b6ed6faa..a23d04750810 100644
--- a/arch/blackfin/mach-bf527/include/mach/bfin_serial_5xx.h
+++ b/arch/blackfin/mach-bf527/include/mach/bfin_serial_5xx.h
@@ -119,7 +119,6 @@ static inline void UART_CLEAR_LSR(struct bfin_serial_port *uart)
119 bfin_write16(uart->port.membase + OFFSET_LSR, -1); 119 bfin_write16(uart->port.membase + OFFSET_LSR, -1);
120} 120}
121 121
122struct bfin_serial_port bfin_serial_ports[BFIN_UART_NR_PORTS];
123struct bfin_serial_res { 122struct bfin_serial_res {
124 unsigned long uart_base_addr; 123 unsigned long uart_base_addr;
125 int uart_irq; 124 int uart_irq;
@@ -164,8 +163,6 @@ struct bfin_serial_res bfin_serial_resource[] = {
164#endif 163#endif
165}; 164};
166 165
167int nr_ports = ARRAY_SIZE(bfin_serial_resource);
168
169#define DRIVER_NAME "bfin-uart" 166#define DRIVER_NAME "bfin-uart"
170 167
171static void bfin_serial_hw_init(struct bfin_serial_port *uart) 168static void bfin_serial_hw_init(struct bfin_serial_port *uart)
diff --git a/arch/blackfin/mach-bf533/include/mach/bfin_serial_5xx.h b/arch/blackfin/mach-bf533/include/mach/bfin_serial_5xx.h
index ebf592b59aab..20471cd5ebfe 100644
--- a/arch/blackfin/mach-bf533/include/mach/bfin_serial_5xx.h
+++ b/arch/blackfin/mach-bf533/include/mach/bfin_serial_5xx.h
@@ -111,7 +111,6 @@ static inline void UART_CLEAR_LSR(struct bfin_serial_port *uart)
111 bfin_write16(uart->port.membase + OFFSET_LSR, -1); 111 bfin_write16(uart->port.membase + OFFSET_LSR, -1);
112} 112}
113 113
114struct bfin_serial_port bfin_serial_ports[BFIN_UART_NR_PORTS];
115struct bfin_serial_res { 114struct bfin_serial_res {
116 unsigned long uart_base_addr; 115 unsigned long uart_base_addr;
117 int uart_irq; 116 int uart_irq;
@@ -142,7 +141,6 @@ struct bfin_serial_res bfin_serial_resource[] = {
142 141
143#define DRIVER_NAME "bfin-uart" 142#define DRIVER_NAME "bfin-uart"
144 143
145int nr_ports = BFIN_UART_NR_PORTS;
146static void bfin_serial_hw_init(struct bfin_serial_port *uart) 144static void bfin_serial_hw_init(struct bfin_serial_port *uart)
147{ 145{
148 146
diff --git a/arch/blackfin/mach-bf537/include/mach/bfin_serial_5xx.h b/arch/blackfin/mach-bf537/include/mach/bfin_serial_5xx.h
index 1bf56ffa22f9..08dfe30300b0 100644
--- a/arch/blackfin/mach-bf537/include/mach/bfin_serial_5xx.h
+++ b/arch/blackfin/mach-bf537/include/mach/bfin_serial_5xx.h
@@ -119,7 +119,6 @@ static inline void UART_CLEAR_LSR(struct bfin_serial_port *uart)
119 bfin_write16(uart->port.membase + OFFSET_LSR, -1); 119 bfin_write16(uart->port.membase + OFFSET_LSR, -1);
120} 120}
121 121
122struct bfin_serial_port bfin_serial_ports[BFIN_UART_NR_PORTS];
123struct bfin_serial_res { 122struct bfin_serial_res {
124 unsigned long uart_base_addr; 123 unsigned long uart_base_addr;
125 int uart_irq; 124 int uart_irq;
@@ -164,8 +163,6 @@ struct bfin_serial_res bfin_serial_resource[] = {
164#endif 163#endif
165}; 164};
166 165
167int nr_ports = ARRAY_SIZE(bfin_serial_resource);
168
169#define DRIVER_NAME "bfin-uart" 166#define DRIVER_NAME "bfin-uart"
170 167
171static void bfin_serial_hw_init(struct bfin_serial_port *uart) 168static void bfin_serial_hw_init(struct bfin_serial_port *uart)
diff --git a/arch/blackfin/mach-bf548/include/mach/bfin_serial_5xx.h b/arch/blackfin/mach-bf548/include/mach/bfin_serial_5xx.h
index 5e29446a8e03..76976b17b530 100644
--- a/arch/blackfin/mach-bf548/include/mach/bfin_serial_5xx.h
+++ b/arch/blackfin/mach-bf548/include/mach/bfin_serial_5xx.h
@@ -105,7 +105,6 @@ struct bfin_serial_port {
105#endif 105#endif
106}; 106};
107 107
108struct bfin_serial_port bfin_serial_ports[BFIN_UART_NR_PORTS];
109struct bfin_serial_res { 108struct bfin_serial_res {
110 unsigned long uart_base_addr; 109 unsigned long uart_base_addr;
111 int uart_irq; 110 int uart_irq;
@@ -170,8 +169,6 @@ struct bfin_serial_res bfin_serial_resource[] = {
170#endif 169#endif
171}; 170};
172 171
173int nr_ports = ARRAY_SIZE(bfin_serial_resource);
174
175#define DRIVER_NAME "bfin-uart" 172#define DRIVER_NAME "bfin-uart"
176 173
177static void bfin_serial_hw_init(struct bfin_serial_port *uart) 174static void bfin_serial_hw_init(struct bfin_serial_port *uart)
diff --git a/arch/blackfin/mach-bf561/include/mach/bfin_serial_5xx.h b/arch/blackfin/mach-bf561/include/mach/bfin_serial_5xx.h
index 8aa02780e642..6cddca4aa182 100644
--- a/arch/blackfin/mach-bf561/include/mach/bfin_serial_5xx.h
+++ b/arch/blackfin/mach-bf561/include/mach/bfin_serial_5xx.h
@@ -111,7 +111,6 @@ static inline void UART_CLEAR_LSR(struct bfin_serial_port *uart)
111 bfin_write16(uart->port.membase + OFFSET_LSR, -1); 111 bfin_write16(uart->port.membase + OFFSET_LSR, -1);
112} 112}
113 113
114struct bfin_serial_port bfin_serial_ports[BFIN_UART_NR_PORTS];
115struct bfin_serial_res { 114struct bfin_serial_res {
116 unsigned long uart_base_addr; 115 unsigned long uart_base_addr;
117 int uart_irq; 116 int uart_irq;
@@ -142,7 +141,6 @@ struct bfin_serial_res bfin_serial_resource[] = {
142 141
143#define DRIVER_NAME "bfin-uart" 142#define DRIVER_NAME "bfin-uart"
144 143
145int nr_ports = BFIN_UART_NR_PORTS;
146static void bfin_serial_hw_init(struct bfin_serial_port *uart) 144static void bfin_serial_hw_init(struct bfin_serial_port *uart)
147{ 145{
148 146