[PATCH] staging: dgnc: do cleanup on module exit
hari prasath
gehariprasath at gmail.com
Tue Jun 9 09:26:42 UTC 2015
On 9 June 2015 at 13:00, Gujulan Elango, Hari Prasath (H.)
<hgujulan at visteon.com> wrote:
> 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);
> --
Please discard this patch. The subject line is wrong.It should be
'dgap' and not 'dgnc'. I am sending a new one.
--
Regards,
G.E.Hari Prasath
More information about the devel
mailing list