aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/synclink_gt.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2006-12-06 23:39:06 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 11:39:42 -0500
commit36499dc2bc8025bc931a0fb22bbe0ac0e46ffb14 (patch)
tree25ca84cec73475cac845a9e8bfb8968d9aa4cd20 /drivers/char/synclink_gt.c
parent7b92ff01c2cd21567c3342c1c77d5e4f1a2bd699 (diff)
[PATCH] synclink_gt: fix init error handling
Initialization synclink_gt forgot to unregister pci driver on error path. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: Paul Fulghum <paulkf@microgate.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/synclink_gt.c')
-rw-r--r--drivers/char/synclink_gt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c
index 07f34d43dc7f..83b5d37d6c59 100644
--- a/drivers/char/synclink_gt.c
+++ b/drivers/char/synclink_gt.c
@@ -3522,6 +3522,7 @@ static int __init slgt_init(void)
3522 3522
3523 if (!slgt_device_list) { 3523 if (!slgt_device_list) {
3524 printk("%s no devices found\n",driver_name); 3524 printk("%s no devices found\n",driver_name);
3525 pci_unregister_driver(&pci_driver);
3525 return -ENODEV; 3526 return -ENODEV;
3526 } 3527 }
3527 3528