[PATCH 50/50] rapide: add module_exit()

Bartlomiej Zolnierkiewicz
2008-07-06T17:49:58Z

[-- Attachment #1: rapide-add-module_exit.patch --]
[-- Type: text/plain, Size: 677 bytes --]

Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
drivers/ide/arm/rapide.c | 6 ++++++
1 file changed, 6 insertions(+)

Index: b/drivers/ide/arm/rapide.c
===================================================================
--- a/drivers/ide/arm/rapide.c
+++ b/drivers/ide/arm/rapide.c
@@ -95,7 +95,13 @@ static int __init rapide_init(void)
return ecard_register_driver(&rapide_driver);
}

+static void __exit rapide_exit(void)
+{
+ ecard_unregister_driver(&rapide_driver);
+}
+
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Yellowstone RAPIDE driver");

module_init(rapide_init);
+module_exit(rapide_exit);

--