staging: dgnc: add __exit macro to dgnc_driver.c
PATCH 1/1 staging: dgnc: add __exit macro to dgnc_driver.c
Add the __exit macro to the dgnc_cleanup_module(void) function in dgnc_driver.c
Signed-off-by Joshua Houghton <[email protected]>
--- drivers/staging/dgnc/dgnc_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/dgnc/dgnc_driver.c +1 -1
@@ -158,7 +158,7 @@ static void cleanup(bool sysfiles)* * Module unload. This is where it all ends. */ -static void dgnc_cleanup_module (void ) +static void __exit dgnc_cleanup_module(void) {cleanup (true);pci_unregister_driver (&dgnc_driver);
Signature · 1 line
2.8.3
Quoted 13 lines · On Saturday, 18 June 2016 19:42:07 UTC Joshua Houghton wrote:
Add the
__exitmacro to thedgnc_cleanup_module(void)function indgnc_driver.cSigned-off-by Joshua Houghton <[email protected]>--- drivers/staging/dgnc/dgnc_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0
b/drivers/staging/dgnc/dgnc_driver.cindex af2e835..2c3fb2a 100644
drivers/staging/dgnc/dgnc_driver.c static void cleanup(bool sysfiles) · line 164
Quoted 8 lines
drivers/staging/dgnc/dgnc_driver.c +1
-1@@ -158,7 +158,7 @@ static void cleanup(bool sysfiles)* * Module unload. This is where it all ends. */ -static void dgnc_cleanup_module (void ) +static void __exit dgnc_cleanup_module(void) {cleanup (true);pci_unregister_driver (&dgnc_driver);
Forgot to CC in Greg Kroah-Hartman