diff options
author | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 03:14:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 03:14:47 -0400 |
commit | babf68de5848f7e4b97c9c4a2d5e30598b825387 (patch) | |
tree | 9e5bb2d6eedc8fb91d81cd34c74f361a4ad81241 /drivers | |
parent | e766f1cc596078b1603ac2c96617660c4c7e2d81 (diff) | |
parent | 9b4e3b13b147e9b737de63188a9ae740eaa8c36d (diff) |
Merge master.kernel.org:/home/rmk/linux-2.6-serial
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/moxa.c | 2 | ||||
-rw-r--r-- | drivers/serial/crisv10.c | 14 | ||||
-rw-r--r-- | drivers/serial/serial_core.c | 20 |
3 files changed, 15 insertions, 21 deletions
diff --git a/drivers/char/moxa.c b/drivers/char/moxa.c index 95f7046ff059..79e490ef2cf2 100644 --- a/drivers/char/moxa.c +++ b/drivers/char/moxa.c | |||
@@ -339,7 +339,7 @@ static int __init moxa_init(void) | |||
339 | 339 | ||
340 | init_MUTEX(&moxaBuffSem); | 340 | init_MUTEX(&moxaBuffSem); |
341 | moxaDriver->owner = THIS_MODULE; | 341 | moxaDriver->owner = THIS_MODULE; |
342 | moxaDriver->name = "ttya"; | 342 | moxaDriver->name = "ttyMX"; |
343 | moxaDriver->devfs_name = "tts/a"; | 343 | moxaDriver->devfs_name = "tts/a"; |
344 | moxaDriver->major = ttymajor; | 344 | moxaDriver->major = ttymajor; |
345 | moxaDriver->minor_start = 0; | 345 | moxaDriver->minor_start = 0; |
diff --git a/drivers/serial/crisv10.c b/drivers/serial/crisv10.c index 23b8871e74cc..5690594b257b 100644 --- a/drivers/serial/crisv10.c +++ b/drivers/serial/crisv10.c | |||
@@ -5041,17 +5041,3 @@ rs_init(void) | |||
5041 | /* this makes sure that rs_init is called during kernel boot */ | 5041 | /* this makes sure that rs_init is called during kernel boot */ |
5042 | 5042 | ||
5043 | module_init(rs_init); | 5043 | module_init(rs_init); |
5044 | |||
5045 | /* | ||
5046 | * register_serial and unregister_serial allows for serial ports to be | ||
5047 | * configured at run-time, to support PCMCIA modems. | ||
5048 | */ | ||
5049 | int | ||
5050 | register_serial(struct serial_struct *req) | ||
5051 | { | ||
5052 | return -1; | ||
5053 | } | ||
5054 | |||
5055 | void unregister_serial(int line) | ||
5056 | { | ||
5057 | } | ||
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c index dea156a62d0a..2d8622eef701 100644 --- a/drivers/serial/serial_core.c +++ b/drivers/serial/serial_core.c | |||
@@ -1947,21 +1947,29 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *port) | |||
1947 | static inline void | 1947 | static inline void |
1948 | uart_report_port(struct uart_driver *drv, struct uart_port *port) | 1948 | uart_report_port(struct uart_driver *drv, struct uart_port *port) |
1949 | { | 1949 | { |
1950 | printk("%s%d", drv->dev_name, port->line); | 1950 | char address[64]; |
1951 | printk(" at "); | 1951 | |
1952 | switch (port->iotype) { | 1952 | switch (port->iotype) { |
1953 | case UPIO_PORT: | 1953 | case UPIO_PORT: |
1954 | printk("I/O 0x%x", port->iobase); | 1954 | snprintf(address, sizeof(address), |
1955 | "I/O 0x%x", port->iobase); | ||
1955 | break; | 1956 | break; |
1956 | case UPIO_HUB6: | 1957 | case UPIO_HUB6: |
1957 | printk("I/O 0x%x offset 0x%x", port->iobase, port->hub6); | 1958 | snprintf(address, sizeof(address), |
1959 | "I/O 0x%x offset 0x%x", port->iobase, port->hub6); | ||
1958 | break; | 1960 | break; |
1959 | case UPIO_MEM: | 1961 | case UPIO_MEM: |
1960 | case UPIO_MEM32: | 1962 | case UPIO_MEM32: |
1961 | printk("MMIO 0x%lx", port->mapbase); | 1963 | snprintf(address, sizeof(address), |
1964 | "MMIO 0x%lx", port->mapbase); | ||
1965 | break; | ||
1966 | default: | ||
1967 | strlcpy(address, "*unknown*", sizeof(address)); | ||
1962 | break; | 1968 | break; |
1963 | } | 1969 | } |
1964 | printk(" (irq = %d) is a %s\n", port->irq, uart_type(port)); | 1970 | |
1971 | printk(KERN_INFO "%s%d at %s (irq = %d) is a %s\n", | ||
1972 | drv->dev_name, port->line, address, port->irq, uart_type(port)); | ||
1965 | } | 1973 | } |
1966 | 1974 | ||
1967 | static void | 1975 | static void |