From: Marcel Holtmann <marcel@holtmann.org>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>,
Karsten Keil <kkeil@suse.de>
Subject: [PATCH] Fix deprecated MODULE_PARM for CAPI subsystem
Date: Thu, 28 Oct 2004 13:58:40 +0200 [thread overview]
Message-ID: <1098964720.6636.21.camel@pegasus> (raw)
[-- Attachment #1: Type: text/plain, Size: 155 bytes --]
The MODULE_PARM is deprecated now and should be replaced by
module_param() or module_param_named().
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 2263 bytes --]
===== drivers/isdn/capi/capi.c 1.61 vs edited =====
--- 1.61/drivers/isdn/capi/capi.c 2004-10-21 19:03:22 +02:00
+++ edited/drivers/isdn/capi/capi.c 2004-10-28 13:22:23 +02:00
@@ -38,6 +38,7 @@
#include <linux/kernelcapi.h>
#include <linux/init.h>
#include <linux/device.h>
+#include <linux/moduleparam.h>
#include <linux/devfs_fs_kernel.h>
#include <linux/isdn/capiutil.h>
#include <linux/isdn/capicmd.h>
@@ -67,10 +68,10 @@
int capi_ttyminors = CAPINC_NR_PORTS;
#endif /* CONFIG_ISDN_CAPI_MIDDLEWARE */
-MODULE_PARM(capi_major, "i");
+module_param_named(major, capi_major, uint, 0);
#ifdef CONFIG_ISDN_CAPI_MIDDLEWARE
-MODULE_PARM(capi_ttymajor, "i");
-MODULE_PARM(capi_ttyminors, "i");
+module_param_named(ttymajor, capi_ttymajor, uint, 0);
+module_param_named(ttyminors, capi_ttyminors, uint, 0);
#endif /* CONFIG_ISDN_CAPI_MIDDLEWARE */
/* -------- defines ------------------------------------------------- */
===== drivers/isdn/capi/capidrv.c 1.31 vs edited =====
--- 1.31/drivers/isdn/capi/capidrv.c 2004-08-27 21:27:24 +02:00
+++ edited/drivers/isdn/capi/capidrv.c 2004-10-28 13:25:40 +02:00
@@ -29,6 +29,7 @@
#include <linux/kernelcapi.h>
#include <linux/ctype.h>
#include <linux/init.h>
+#include <linux/moduleparam.h>
#include <linux/isdn/capiutil.h>
#include <linux/isdn/capicmd.h>
@@ -40,7 +41,7 @@
MODULE_DESCRIPTION("CAPI4Linux: Interface to ISDN4Linux");
MODULE_AUTHOR("Carsten Paeth");
MODULE_LICENSE("GPL");
-MODULE_PARM(debugmode, "i");
+module_param(debugmode, uint, 0);
/* -------- type definitions ----------------------------------------- */
===== drivers/isdn/capi/kcapi.c 1.55 vs edited =====
--- 1.55/drivers/isdn/capi/kcapi.c 2004-10-19 11:40:35 +02:00
+++ edited/drivers/isdn/capi/kcapi.c 2004-10-28 13:25:56 +02:00
@@ -24,6 +24,7 @@
#include <linux/capi.h>
#include <linux/kernelcapi.h>
#include <linux/init.h>
+#include <linux/moduleparam.h>
#include <linux/delay.h>
#include <asm/uaccess.h>
#include <linux/isdn/capicmd.h>
@@ -41,7 +42,7 @@
MODULE_DESCRIPTION("CAPI4Linux: kernel CAPI layer");
MODULE_AUTHOR("Carsten Paeth");
MODULE_LICENSE("GPL");
-MODULE_PARM(showcapimsgs, "i");
+module_param(showcapimsgs, uint, 0);
/* ------------------------------------------------------------- */
reply other threads:[~2004-10-28 12:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1098964720.6636.21.camel@pegasus \
--to=marcel@holtmann.org \
--cc=akpm@osdl.org \
--cc=kkeil@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).