Commit 463015dd authored by David Härdeman's avatar David Härdeman Committed by Mauro Carvalho Chehab

[media] lirc_dev: cleanup includes

Remove superfluous includes and defines.
Signed-off-by: default avatarDavid Härdeman <david@hardeman.nu>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 29debf3d
...@@ -18,17 +18,10 @@ ...@@ -18,17 +18,10 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h> #include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched/signal.h> #include <linux/sched/signal.h>
#include <linux/errno.h>
#include <linux/ioctl.h> #include <linux/ioctl.h>
#include <linux/fs.h>
#include <linux/poll.h> #include <linux/poll.h>
#include <linux/completion.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/wait.h>
#include <linux/unistd.h>
#include <linux/bitops.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/cdev.h> #include <linux/cdev.h>
...@@ -36,7 +29,6 @@ ...@@ -36,7 +29,6 @@
#include <media/lirc.h> #include <media/lirc.h>
#include <media/lirc_dev.h> #include <media/lirc_dev.h>
#define IRCTL_DEV_NAME "BaseRemoteCtl"
#define NOPLUG -1 #define NOPLUG -1
#define LOGHEAD "lirc_dev (%s[%d]): " #define LOGHEAD "lirc_dev (%s[%d]): "
...@@ -595,7 +587,7 @@ static int __init lirc_dev_init(void) ...@@ -595,7 +587,7 @@ static int __init lirc_dev_init(void)
} }
retval = alloc_chrdev_region(&lirc_base_dev, 0, MAX_IRCTL_DEVICES, retval = alloc_chrdev_region(&lirc_base_dev, 0, MAX_IRCTL_DEVICES,
IRCTL_DEV_NAME); "BaseRemoteCtl");
if (retval) { if (retval) {
class_destroy(lirc_class); class_destroy(lirc_class);
pr_err("alloc_chrdev_region failed\n"); pr_err("alloc_chrdev_region failed\n");
......
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