diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2006-12-06 20:39:06 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 08:39:42 -0800 |
commit | 36499dc2bc8025bc931a0fb22bbe0ac0e46ffb14 (patch) | |
tree | 25ca84cec73475cac845a9e8bfb8968d9aa4cd20 /drivers/char/synclink_gt.c | |
parent | 7b92ff01c2cd21567c3342c1c77d5e4f1a2bd699 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c index 07f34d43dc7..83b5d37d6c5 100644 --- a/drivers/char/synclink_gt.c +++ b/drivers/char/synclink_gt.c @@ -3522,6 +3522,7 @@ static int __init slgt_init(void) if (!slgt_device_list) { printk("%s no devices found\n",driver_name); + pci_unregister_driver(&pci_driver); return -ENODEV; } |