From: Geert Uytterhoeven Date: Thu, 9 Apr 2009 19:22:42 +0000 (+0200) Subject: scsi: a4000 - Correct driver unregistration in case of failure X-Git-Tag: MMI-PSA29.97-13-9~28340^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2d138ae09935cec055f65d18300727a7a46d92b9;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- diff --git a/drivers/scsi/a4000t.c b/drivers/scsi/a4000t.c index 61af3d91ac8a..e3519fa5a3ba 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); }