greybus: core: Don't initialize greybus if it is disabled
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
792c17e643
commit
337b068722
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue