From 5282d83137d7c1f894f0792f0a7b09ec3520d282 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Wed, 15 Dec 2010 17:53:21 +0000 Subject: wctc4xxp: Make the "mode" module parameter read-only in sysfs. The mode module parameter is only acted on during module initialization. We shouldn't allow anyone to change it after the driver is already loaded. Signed-off-by: Shaun Ruffell Acked-by: Kinsey Moore Acked-By: Russ Meyerriecks git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9537 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctc4xxp/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/dahdi/wctc4xxp') diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c index 7848444..1e2b771 100644 --- a/drivers/dahdi/wctc4xxp/base.c +++ b/drivers/dahdi/wctc4xxp/base.c @@ -3766,7 +3766,7 @@ static void __exit wctc4xxp_cleanup(void) } module_param(debug, int, S_IRUGO | S_IWUSR); -module_param(mode, charp, S_IRUGO | S_IWUSR); +module_param(mode, charp, S_IRUGO); MODULE_PARM_DESC(mode, "'g729', 'g723.1', or 'any'. Default 'any'."); MODULE_DESCRIPTION("Wildcard TC400P+TC400M Driver"); MODULE_AUTHOR("Digium Incorporated "); -- cgit v1.2.3