summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2006-12-07 04:39:06 (GMT)
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 16:39:42 (GMT)
commit36499dc2bc8025bc931a0fb22bbe0ac0e46ffb14 (patch)
tree25ca84cec73475cac845a9e8bfb8968d9aa4cd20 /drivers
parent7b92ff01c2cd21567c3342c1c77d5e4f1a2bd699 (diff)
downloadlinux-36499dc2bc8025bc931a0fb22bbe0ac0e46ffb14.tar.xz
[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')
-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 07f34d4..83b5d37 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;
}