xpp: continue xpp.dahdi_autoreg deprecation

* Set it to 0 by default (as we use dahdi.auto_assign_spans now)
* Make it readonly (no runtime changes)
* Warn during startup if it was forced to 1

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com>
This commit is contained in:
Oron Peled 2014-01-26 16:11:01 +02:00 committed by Tzafrir Cohen
parent 74e949c33a
commit 2ecf700dd8

View File

@ -60,7 +60,7 @@ static DEF_PARM(uint, command_queue_length, 1500, 0444,
static DEF_PARM(uint, poll_timeout, 1000, 0644, static DEF_PARM(uint, poll_timeout, 1000, 0644,
"Timeout (in jiffies) waiting for units to reply"); "Timeout (in jiffies) waiting for units to reply");
static DEF_PARM_BOOL(rx_tasklet, 0, 0644, "Use receive tasklets"); static DEF_PARM_BOOL(rx_tasklet, 0, 0644, "Use receive tasklets");
static DEF_PARM_BOOL(dahdi_autoreg, 1, 0644, static DEF_PARM_BOOL(dahdi_autoreg, 0, 0444,
"Register devices automatically (1) or not (0). UNUSED."); "Register devices automatically (1) or not (0). UNUSED.");
#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
@ -1977,6 +1977,10 @@ int __init xbus_core_init(void)
{ {
int ret = 0; int ret = 0;
if (dahdi_autoreg == 1) {
NOTICE("WARNING: The dahdi_autoreg parameter is deprecated " \
"-- just set dahdi.auto_assign_spans=0\n");
}
initialize_xbuses_array(); initialize_xbuses_array();
#ifdef PROTOCOL_DEBUG #ifdef PROTOCOL_DEBUG
INFO("FEATURE: with PROTOCOL_DEBUG\n"); INFO("FEATURE: with PROTOCOL_DEBUG\n");