diff options
Diffstat (limited to 'drivers/serial/crisv10.c')
-rw-r--r-- | drivers/serial/crisv10.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/serial/crisv10.c b/drivers/serial/crisv10.c index bf94a770bb44..a467c77d8a13 100644 --- a/drivers/serial/crisv10.c +++ b/drivers/serial/crisv10.c | |||
@@ -4419,6 +4419,7 @@ rs_init(void) | |||
4419 | rs485_pa_bit)) { | 4419 | rs485_pa_bit)) { |
4420 | printk(KERN_CRIT "ETRAX100LX serial: Could not allocate " | 4420 | printk(KERN_CRIT "ETRAX100LX serial: Could not allocate " |
4421 | "RS485 pin\n"); | 4421 | "RS485 pin\n"); |
4422 | put_tty_driver(driver); | ||
4422 | return -EBUSY; | 4423 | return -EBUSY; |
4423 | } | 4424 | } |
4424 | #endif | 4425 | #endif |
@@ -4427,6 +4428,7 @@ rs_init(void) | |||
4427 | rs485_port_g_bit)) { | 4428 | rs485_port_g_bit)) { |
4428 | printk(KERN_CRIT "ETRAX100LX serial: Could not allocate " | 4429 | printk(KERN_CRIT "ETRAX100LX serial: Could not allocate " |
4429 | "RS485 pin\n"); | 4430 | "RS485 pin\n"); |
4431 | put_tty_driver(driver); | ||
4430 | return -EBUSY; | 4432 | return -EBUSY; |
4431 | } | 4433 | } |
4432 | #endif | 4434 | #endif |