Commit 2e4b5cd6 authored by Cheah Kok Cheong's avatar Cheah Kok Cheong Committed by Greg Kroah-Hartman
Browse files

Staging: comedi: proc: Warn if unable to create proc entry



The proc entry is not essential for the comedi system as
evident by the support for !CONFIG_PROC_FS. So for failure
to create, just warn and continue loading.

Signed-off-by: default avatarCheah Kok Cheong <thrust73@gmail.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6bd68e29
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -89,7 +89,8 @@ static const struct file_operations comedi_proc_fops = {

void __init comedi_proc_init(void)
{
	proc_create("comedi", 0444, NULL, &comedi_proc_fops);
	if (!proc_create("comedi", 0444, NULL, &comedi_proc_fops))
		pr_warn("comedi: unable to create proc entry\n");
}

void comedi_proc_cleanup(void)