Skip to contentSkip to conversation

scsi: a4000 - Correct driver unregistration in case of failure

PATCH New Geert Uytterhoeven 1 participant 1 message Apr 9, 2009 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/scsi/a4000t.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/a4000t.c +1 -1
index 61af3d9..e3519fa 100644
@@ -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);
 	}
 
Signature · 12 lines
1.6.2.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds