]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/serial/crisv10.c
8250: remove a few inlines of dubious value
[linux-2.6-omap-h63xx.git] / drivers / serial / crisv10.c
index bf94a770bb445d4b2d13ed71865f18fb982bfb0e..a467c77d8a13077109ebc895ce7ea9c2a077bd32 100644 (file)
@@ -4419,6 +4419,7 @@ rs_init(void)
                        rs485_pa_bit)) {
                printk(KERN_CRIT "ETRAX100LX serial: Could not allocate "
                        "RS485 pin\n");
+               put_tty_driver(driver);
                return -EBUSY;
        }
 #endif
@@ -4427,6 +4428,7 @@ rs_init(void)
                        rs485_port_g_bit)) {
                printk(KERN_CRIT "ETRAX100LX serial: Could not allocate "
                        "RS485 pin\n");
+               put_tty_driver(driver);
                return -EBUSY;
        }
 #endif