diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2009-04-09 21:22:42 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2009-04-22 20:39:06 +0200 |
commit | 2d138ae09935cec055f65d18300727a7a46d92b9 (patch) | |
tree | 696c1e18aed030c6d344e66655469f5efe099c94 /drivers/scsi | |
parent | 091069740304c979f957ceacec39c461d0192158 (diff) | |
download | kernel_goldelico_gta04-2d138ae09935cec055f65d18300727a7a46d92b9.zip kernel_goldelico_gta04-2d138ae09935cec055f65d18300727a7a46d92b9.tar.gz kernel_goldelico_gta04-2d138ae09935cec055f65d18300727a7a46d92b9.tar.bz2 |
scsi: a4000 - Correct driver unregistration in case of failure
commit 7a192ec334cab9fafe3a8665a65af398b0e24730 ("platform driver: fix
incorrect use of 'platform_bus_type' with 'struct device_driver') turned a
driver_UNregister into platform_driver_REGISTER. Correct this to
platform_driver_UNregister.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/a4000t.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/a4000t.c b/drivers/scsi/a4000t.c index 61af3d9..e3519fa 100644 --- a/drivers/scsi/a4000t.c +++ b/drivers/scsi/a4000t.c @@ -129,7 +129,7 @@ static int __init a4000t_scsi_init(void) a4000t_scsi_device = platform_device_register_simple("a4000t-scsi", -1, NULL, 0); if (IS_ERR(a4000t_scsi_device)) { - platform_driver_register(&a4000t_scsi_driver); + platform_driver_unregister(&a4000t_scsi_driver); return PTR_ERR(a4000t_scsi_device); } |