Skip to content

Commit

Permalink
scsi: a4000 - Correct driver unregistration in case of failure
Browse files Browse the repository at this point in the history
commit 7a192ec ("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>
  • Loading branch information
geertu committed Apr 22, 2009
1 parent 0910697 commit 2d138ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/a4000t.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2d138ae

Please sign in to comment.