Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176343
b: refs/heads/master
c: 9385565
h: refs/heads/master
i:
  176341: 958673a
  176339: 2602045
  176335: fbf8e63
v: v3
  • Loading branch information
Jean Delvare authored and Linus Torvalds committed Dec 15, 2009
1 parent 122a503 commit 69a2cdd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2ea5d35a49f5c89d1d2d677fe90c71ad5a6278b6
refs/heads/master: 9385565e20c4acf97cd8e2fd7155750e578edcc4
16 changes: 13 additions & 3 deletions trunk/drivers/serial/ioc4_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -2913,17 +2913,27 @@ static int __init ioc4_serial_init(void)
printk(KERN_WARNING
"%s: Couldn't register rs232 IOC4 serial driver\n",
__func__);
return ret;
goto out;
}
if ((ret = uart_register_driver(&ioc4_uart_rs422)) < 0) {
printk(KERN_WARNING
"%s: Couldn't register rs422 IOC4 serial driver\n",
__func__);
return ret;
goto out_uart_rs232;
}

/* register with IOC4 main module */
return ioc4_register_submodule(&ioc4_serial_submodule);
ret = ioc4_register_submodule(&ioc4_serial_submodule);
if (ret)
goto out_uart_rs422;
return 0;

out_uart_rs422:
uart_unregister_driver(&ioc4_uart_rs422);
out_uart_rs232:
uart_unregister_driver(&ioc4_uart_rs232);
out:
return ret;
}

static void __exit ioc4_serial_exit(void)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/sn/ioc3.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ static int __init ioc3_init(void)
{
if (ia64_platform_is("sn2"))
return pci_register_driver(&ioc3_driver);
return 0;
return -ENODEV;
}

/* Module unload */
Expand Down

0 comments on commit 69a2cdd

Please sign in to comment.