From 3d41efd784feeb4e63884d0357f46d1467cdfc56 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Tue, 14 Sep 2010 02:43:33 +0000 Subject: [PATCH] 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 --- scst_local/scst_local.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scst_local/scst_local.c b/scst_local/scst_local.c index cb23f953f..7fcd2ab28 100644 --- a/scst_local/scst_local.c +++ b/scst_local/scst_local.c @@ -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)