aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi
diff options
context:
space:
mode:
authorCheah Kok Cheong <thrust73@gmail.com>2016-12-30 19:27:41 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-03 15:30:21 +0100
commit2e4b5cd641056ca58836502cde1613eb6a375f2a (patch)
treef7ab46e946bc662f08edc475e47448dcd03823ee /drivers/staging/comedi
parentStaging: comedi: proc: Add module owner (diff)
downloadlinux-dev-2e4b5cd641056ca58836502cde1613eb6a375f2a.tar.xz
linux-dev-2e4b5cd641056ca58836502cde1613eb6a375f2a.zip
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.c3
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)