projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
792c17e
)
greybus: core: Don't initialize greybus if it is disabled
author
Viresh Kumar
<viresh.kumar@linaro.org>
Fri, 20 Mar 2015 14:59:13 +0000
(20:29 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 24 Mar 2015 14:53:45 +0000
(15:53 +0100)
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/core.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/core.c
b/drivers/staging/greybus/core.c
index 15408ec61dc3d46f89fc65736d453285d4fcdc5c..a25df369d2b99ba4b54b8facfd1e2a8fab10b837 100644
(file)
--- a/
drivers/staging/greybus/core.c
+++ b/
drivers/staging/greybus/core.c
@@
-207,6
+207,9
@@
static int __init gb_init(void)
{
int retval;
+ if (greybus_disabled())
+ return -ENODEV;
+
BUILD_BUG_ON(HOST_DEV_CPORT_ID_MAX >= (long)CPORT_ID_BAD);
retval = gb_debugfs_init();