summaryrefslogtreecommitdiffstats
path: root/drivers/char/synclink_gt.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2006-12-07 05:39:06 +0100
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 17:39:42 +0100
commit36499dc2bc8025bc931a0fb22bbe0ac0e46ffb14 (patch)
tree25ca84cec73475cac845a9e8bfb8968d9aa4cd20 /drivers/char/synclink_gt.c
parent[PATCH] spi: check platform_device_register_simple() error (diff)
downloadlinux-36499dc2bc8025bc931a0fb22bbe0ac0e46ffb14.tar.xz
linux-36499dc2bc8025bc931a0fb22bbe0ac0e46ffb14.zip
[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)
if (!slgt_device_list) {
printk("%s no devices found\n",driver_name);
+ pci_unregister_driver(&pci_driver);
return -ENODEV;
}