Commit f268fd24 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Jeff Garzik

[PATCH] slip: use module_param

Replace MODULE_PARM with module_param (also make slip_maxdev static).
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
parent 3f326d42
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
#define SL_CHECK_TRANSMIT #define SL_CHECK_TRANSMIT
#include <linux/config.h> #include <linux/config.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/moduleparam.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
...@@ -85,8 +86,8 @@ ...@@ -85,8 +86,8 @@
static struct net_device **slip_devs; static struct net_device **slip_devs;
int slip_maxdev = SL_NRUNIT; /* Can be overridden with insmod! */ static int slip_maxdev = SL_NRUNIT;
MODULE_PARM(slip_maxdev, "i"); module_param(slip_maxdev, int, 0);
MODULE_PARM_DESC(slip_maxdev, "Maximum number of slip devices"); MODULE_PARM_DESC(slip_maxdev, "Maximum number of slip devices");
static int slip_esc(unsigned char *p, unsigned char *d, int len); static int slip_esc(unsigned char *p, unsigned char *d, int len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment