diff options
author | Cheah Kok Cheong <thrust73@gmail.com> | 2016-12-30 14:27:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-03 17:30:21 +0300 |
commit | 2e4b5cd641056ca58836502cde1613eb6a375f2a (patch) | |
tree | f7ab46e946bc662f08edc475e47448dcd03823ee /drivers/staging/comedi | |
parent | 6bd68e29b6fd6043fee89b056f791a394d89a57f (diff) | |
download | linux-2e4b5cd641056ca58836502cde1613eb6a375f2a.tar.xz |
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>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r-- | drivers/staging/comedi/proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/comedi/proc.c b/drivers/staging/comedi/proc.c index 99b23b2e32dd..2644dd4d6143 100644 --- a/drivers/staging/comedi/proc.c +++ b/drivers/staging/comedi/proc.c @@ -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) |