Commit 00775828 authored by Grant Likely's avatar Grant Likely Committed by Josh Boyer

[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: default avatarGrant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarJosh Boyer <jwboyer@linux.vnet.ibm.com>
parent 483c79db
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <asm/io.h> #include <asm/io.h>
#define ULITE_NAME "ttyUL"
#define ULITE_MAJOR 204 #define ULITE_MAJOR 204
#define ULITE_MINOR 187 #define ULITE_MINOR 187
#define ULITE_NR_UARTS 4 #define ULITE_NR_UARTS 4
...@@ -381,7 +382,7 @@ static int __init ulite_console_setup(struct console *co, char *options) ...@@ -381,7 +382,7 @@ static int __init ulite_console_setup(struct console *co, char *options)
static struct uart_driver ulite_uart_driver; static struct uart_driver ulite_uart_driver;
static struct console ulite_console = { static struct console ulite_console = {
.name = "ttyUL", .name = ULITE_NAME,
.write = ulite_console_write, .write = ulite_console_write,
.device = uart_console_device, .device = uart_console_device,
.setup = ulite_console_setup, .setup = ulite_console_setup,
...@@ -403,7 +404,7 @@ console_initcall(ulite_console_init); ...@@ -403,7 +404,7 @@ console_initcall(ulite_console_init);
static struct uart_driver ulite_uart_driver = { static struct uart_driver ulite_uart_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.driver_name = "uartlite", .driver_name = "uartlite",
.dev_name = "ttyUL", .dev_name = ULITE_NAME,
.major = ULITE_MAJOR, .major = ULITE_MAJOR,
.minor = ULITE_MINOR, .minor = ULITE_MINOR,
.nr = ULITE_NR_UARTS, .nr = ULITE_NR_UARTS,
......
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