diff options
Diffstat (limited to 'drivers/tty/mxser.c')
-rw-r--r-- | drivers/tty/mxser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/mxser.c b/drivers/tty/mxser.c index d188f378684d..7fc8c02fea6c 100644 --- a/drivers/tty/mxser.c +++ b/drivers/tty/mxser.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <linux/pci.h> | 39 | #include <linux/pci.h> |
40 | #include <linux/bitops.h> | 40 | #include <linux/bitops.h> |
41 | #include <linux/slab.h> | 41 | #include <linux/slab.h> |
42 | #include <linux/ratelimit.h> | ||
42 | 43 | ||
43 | #include <asm/system.h> | 44 | #include <asm/system.h> |
44 | #include <asm/io.h> | 45 | #include <asm/io.h> |
@@ -1490,8 +1491,7 @@ static int mxser_ioctl_special(unsigned int cmd, void __user *argp) | |||
1490 | 1491 | ||
1491 | switch (cmd) { | 1492 | switch (cmd) { |
1492 | case MOXA_GET_MAJOR: | 1493 | case MOXA_GET_MAJOR: |
1493 | if (printk_ratelimit()) | 1494 | printk_ratelimited(KERN_WARNING "mxser: '%s' uses deprecated ioctl " |
1494 | printk(KERN_WARNING "mxser: '%s' uses deprecated ioctl " | ||
1495 | "%x (GET_MAJOR), fix your userspace\n", | 1495 | "%x (GET_MAJOR), fix your userspace\n", |
1496 | current->comm, cmd); | 1496 | current->comm, cmd); |
1497 | return put_user(ttymajor, (int __user *)argp); | 1497 | return put_user(ttymajor, (int __user *)argp); |