mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
UPSTREAM: [media] lirc_dev: cleanup includes
Remove superfluous includes and defines.
Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
(cherry picked from commit 463015ddb4)
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Conflicts:
drivers/media/rc/lirc_dev.c
This commit is contained in:
committed by
Tao Huang
parent
d928794b66
commit
c25ea039e2
@@ -26,13 +26,8 @@
|
||||
#include <linux/sched.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/ioctl.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/poll.h>
|
||||
#include <linux/completion.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/wait.h>
|
||||
#include <linux/unistd.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/cdev.h>
|
||||
|
||||
@@ -40,7 +35,6 @@
|
||||
#include <media/lirc.h>
|
||||
#include <media/lirc_dev.h>
|
||||
|
||||
#define IRCTL_DEV_NAME "BaseRemoteCtl"
|
||||
#define NOPLUG -1
|
||||
#define LOGHEAD "lirc_dev (%s[%d]): "
|
||||
|
||||
@@ -599,7 +593,7 @@ static int __init lirc_dev_init(void)
|
||||
}
|
||||
|
||||
retval = alloc_chrdev_region(&lirc_base_dev, 0, MAX_IRCTL_DEVICES,
|
||||
IRCTL_DEV_NAME);
|
||||
"BaseRemoteCtl");
|
||||
if (retval) {
|
||||
class_destroy(lirc_class);
|
||||
pr_err("alloc_chrdev_region failed\n");
|
||||
|
||||
Reference in New Issue
Block a user