[PATCH] staging: dgap: do cleanup on module exit

Gujulan Elango, Hari Prasath (H.) hgujulan at visteon.com
Tue Jun 9 09:27:22 UTC 2015


From: Hari Prasath Gujulan Elango <hgujulan at visteon.com>

Cleanup the device entry,device class & unregister the character device
in the module exit.All this cleanup is done already in the dgap_stop()
function.We need to call this in the cleanup module.

Signed-off-by: Hari Prasath Gujulan Elango <hgujulan at visteon.com>
---
 drivers/staging/dgap/dgap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
index 26b0446..b6fa486 100644
--- a/drivers/staging/dgap/dgap.c
+++ b/drivers/staging/dgap/dgap.c
@@ -7161,6 +7161,7 @@ static void dgap_cleanup_module(void)
 {
 	if (dgap_numboards)
 		pci_unregister_driver(&dgap_driver);
+	dgap_stop();
 }
 
 module_init(dgap_init_module);
-- 
1.9.1


More information about the devel mailing list