aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2007-10-01 22:15:49 -0400
committerJosh Boyer <jwboyer@linux.vnet.ibm.com>2007-10-03 08:23:15 -0400
commit00775828e66124b4af54fafc393e5e89248802c9 (patch)
tree6d58e172a0ad596eec1f439ff3dfb7e2d2d82563 /drivers/serial
parent483c79db95b56a9650bd6f0638e7366eb20ffc01 (diff)
[POWERPC] Uartlite: Add macro for uartlite device name
Changed to make the following OF_platform bus binding patch a wee bit cleaner Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/uartlite.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/serial/uartlite.c b/drivers/serial/uartlite.c
index ae05a67d9dbe..10e0da97811e 100644
--- a/drivers/serial/uartlite.c
+++ b/drivers/serial/uartlite.c
@@ -18,6 +18,7 @@
18#include <linux/interrupt.h> 18#include <linux/interrupt.h>
19#include <asm/io.h> 19#include <asm/io.h>
20 20
21#define ULITE_NAME "ttyUL"
21#define ULITE_MAJOR 204 22#define ULITE_MAJOR 204
22#define ULITE_MINOR 187 23#define ULITE_MINOR 187
23#define ULITE_NR_UARTS 4 24#define ULITE_NR_UARTS 4
@@ -381,7 +382,7 @@ static int __init ulite_console_setup(struct console *co, char *options)
381static struct uart_driver ulite_uart_driver; 382static struct uart_driver ulite_uart_driver;
382 383
383static struct console ulite_console = { 384static struct console ulite_console = {
384 .name = "ttyUL", 385 .name = ULITE_NAME,
385 .write = ulite_console_write, 386 .write = ulite_console_write,
386 .device = uart_console_device, 387 .device = uart_console_device,
387 .setup = ulite_console_setup, 388 .setup = ulite_console_setup,
@@ -403,7 +404,7 @@ console_initcall(ulite_console_init);
403static struct uart_driver ulite_uart_driver = { 404static struct uart_driver ulite_uart_driver = {
404 .owner = THIS_MODULE, 405 .owner = THIS_MODULE,
405 .driver_name = "uartlite", 406 .driver_name = "uartlite",
406 .dev_name = "ttyUL", 407 .dev_name = ULITE_NAME,
407 .major = ULITE_MAJOR, 408 .major = ULITE_MAJOR,
408 .minor = ULITE_MINOR, 409 .minor = ULITE_MINOR,
409 .nr = ULITE_NR_UARTS, 410 .nr = ULITE_NR_UARTS,