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>
This commit is contained in:
parent
6bd68e29b6
commit
2e4b5cd641
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user