Add an #ifndef CONFIG_SCST_PROC around the checking for add_default_tgt so that

we use the old PROC behavior.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2122 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Richard Sharpe
2010-09-14 02:43:33 +00:00
parent 62564bb386
commit 3d41efd784

View File

@@ -1785,8 +1785,16 @@ static int __init scst_local_init(void)
goto driver_unreg;
}
#ifndef CONFIG_SCST_PROC
/*
* If we are using sysfs, then don't add a default target unless
* we are told to do so. When using procfs, we always add a default
* target because that was what the earliest versions did. Just
* remove the preprocessor directives when no longer needed.
*/
if (!scst_local_add_default_tgt)
goto out;
#endif
ret = scst_local_add_target("scst_local_tgt", &tgt);
if (ret != 0)