1
0
Fork 0

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: Cheah Kok Cheong <thrust73@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
Cheah Kok Cheong 2016-12-30 19:27:41 +08:00 committed by Greg Kroah-Hartman
parent 6bd68e29b6
commit 2e4b5cd641
1 changed files with 2 additions and 1 deletions

View File

@ -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)