Commit 2d138ae0 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

scsi: a4000 - Correct driver unregistration in case of failure

commit 7a192ec3 ("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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 09106974
...@@ -129,7 +129,7 @@ static int __init a4000t_scsi_init(void) ...@@ -129,7 +129,7 @@ static int __init a4000t_scsi_init(void)
a4000t_scsi_device = platform_device_register_simple("a4000t-scsi", a4000t_scsi_device = platform_device_register_simple("a4000t-scsi",
-1, NULL, 0); -1, NULL, 0);
if (IS_ERR(a4000t_scsi_device)) { if (IS_ERR(a4000t_scsi_device)) {
platform_driver_register(&a4000t_scsi_driver); platform_driver_unregister(&a4000t_scsi_driver);
return PTR_ERR(a4000t_scsi_device); return PTR_ERR(a4000t_scsi_device);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment