[qca-nss-drv] Changes to compile the driver for coconut
Compile capwap & qdisc only for kernel 3.4. Remove unused
header file from nss_log.c
Change-Id: I9bddf4c0e88768e3803d407ed44bb950b1cb37ed
Signed-off-by: Sundarajan Srinivasan <sundaraj@codeaurora.org>
diff --git a/nss_init.c b/nss_init.c
index 95c59b3..72f526a 100755
--- a/nss_init.c
+++ b/nss_init.c
@@ -1051,7 +1051,9 @@
return ret;
}
+#endif /* NSS_PM_SUPPORT */
+#if (NSS_FW_DBG_SUPPORT == 1)
/*
* nss_debug_handler()
* Enable NSS debug output
@@ -1070,6 +1072,7 @@
return ret;
}
+#endif
/*
* nss_rps_handler()
@@ -1165,6 +1168,7 @@
return ret;
}
+#if (NSS_PM_SUPPORT == 1)
/*
* sysctl-tuning infrastructure.
*/
@@ -1199,6 +1203,7 @@
},
{ }
};
+#endif
static ctl_table nss_general_table[] = {
{
@@ -1208,6 +1213,7 @@
.mode = 0644,
.proc_handler = proc_dointvec,
},
+#if (NSS_FW_DBG_SUPPORT == 1)
{
.procname = "debug",
.data = &nss_ctl_debug,
@@ -1215,6 +1221,7 @@
.mode = 0644,
.proc_handler = &nss_debug_handler,
},
+#endif
{
.procname = "coredump",
.data = &nss_cmd_buf.coredump,
@@ -1254,11 +1261,13 @@
};
static ctl_table nss_clock_dir[] = {
+#if (NSS_PM_SUPPORT == 1)
{
.procname = "clock",
.mode = 0555,
.child = nss_freq_table,
},
+#endif
{
.procname = "general",
.mode = 0555,
@@ -1284,7 +1293,6 @@
},
{ }
};
-#endif /** NSS_PM_SUPPORT */
static struct ctl_table_header *nss_dev_header;
@@ -1357,7 +1365,6 @@
*/
nss_stats_init();
-#if (NSS_PM_SUPPORT == 1)
/*
* Register sysctl table.
*/
@@ -1369,6 +1376,7 @@
nss_ipv4_register_sysctl();
nss_ipv6_register_sysctl();
+#if (NSS_PM_SUPPORT == 1)
/*
* Setup Runtime Sample values
*/