Commit 82fa7a84 authored by Dave Jones's avatar Dave Jones

[PATCH] rocket driver janitor bits

parent 5b50077e
...@@ -1330,7 +1330,7 @@ static char *rp_tty_name(struct tty_struct *tty, char *buf) ...@@ -1330,7 +1330,7 @@ static char *rp_tty_name(struct tty_struct *tty, char *buf)
{ {
if (tty) if (tty)
sprintf(buf, "%s%d", tty->driver.name, sprintf(buf, "%s%d", tty->driver.name,
MINOR(tty->device) - tty->driver.minor_start + minor(tty->device) - tty->driver.minor_start +
tty->driver.name_base); tty->driver.name_base);
else else
strcpy(buf, "NULL tty"); strcpy(buf, "NULL tty");
...@@ -1794,6 +1794,10 @@ int __init register_PCI(int i, unsigned int bus, unsigned int device_fn) ...@@ -1794,6 +1794,10 @@ int __init register_PCI(int i, unsigned int bus, unsigned int device_fn)
str = "8-port Modem"; str = "8-port Modem";
max_num_aiops = 1; max_num_aiops = 1;
break; break;
case 0x8:
str = "mysterious 8 port";
max_num_aiops = 1;
break;
default: default:
str = "(unknown/unsupported)"; str = "(unknown/unsupported)";
max_num_aiops = 0; max_num_aiops = 0;
...@@ -1872,6 +1876,10 @@ static int __init init_PCI(int boards_found) ...@@ -1872,6 +1876,10 @@ static int __init init_PCI(int boards_found)
PCI_DEVICE_ID_RP8M, i, &bus, &device_fn)) PCI_DEVICE_ID_RP8M, i, &bus, &device_fn))
if(register_PCI(count+boards_found, bus, device_fn)) if(register_PCI(count+boards_found, bus, device_fn))
count++; count++;
if(!pcibios_find_device(PCI_VENDOR_ID_RP,
0x8, i, &bus, &device_fn))
if(register_PCI(count+boards_found, bus, device_fn))
count++;
} }
return(count); return(count);
} }
...@@ -2072,6 +2080,7 @@ int __init rp_init(void) ...@@ -2072,6 +2080,7 @@ int __init rp_init(void)
if (retval < 0) { if (retval < 0) {
printk("Couldn't install Rocketport callout driver " printk("Couldn't install Rocketport callout driver "
"(error %d)\n", -retval); "(error %d)\n", -retval);
release_region(controller, 4);
return -1; return -1;
} }
...@@ -2079,6 +2088,7 @@ int __init rp_init(void) ...@@ -2079,6 +2088,7 @@ int __init rp_init(void)
if (retval < 0) { if (retval < 0) {
printk("Couldn't install tty Rocketport driver " printk("Couldn't install tty Rocketport driver "
"(error %d)\n", -retval); "(error %d)\n", -retval);
release_region(controller, 4);
return -1; return -1;
} }
#ifdef ROCKET_DEBUG_OPEN #ifdef ROCKET_DEBUG_OPEN
......
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