Commit 5ca3f1f9 authored by Andrey Borzenkov's avatar Andrey Borzenkov Committed by Vojtech Pavlik

input: Move devfs entries for joystick into /dev/input

parent 6cd3bc94
...@@ -143,7 +143,7 @@ static int joydev_fasync(int fd, struct file *file, int on) ...@@ -143,7 +143,7 @@ static int joydev_fasync(int fd, struct file *file, int on)
static void joydev_free(struct joydev *joydev) static void joydev_free(struct joydev *joydev)
{ {
devfs_remove("js%d", joydev->minor); devfs_remove("input/js%d", joydev->minor);
joydev_table[joydev->minor] = NULL; joydev_table[joydev->minor] = NULL;
kfree(joydev); kfree(joydev);
} }
...@@ -443,7 +443,7 @@ static struct input_handle *joydev_connect(struct input_handler *handler, struct ...@@ -443,7 +443,7 @@ static struct input_handle *joydev_connect(struct input_handler *handler, struct
joydev_table[minor] = joydev; joydev_table[minor] = joydev;
devfs_mk_cdev(MKDEV(INPUT_MAJOR, JOYDEV_MINOR_BASE + minor), devfs_mk_cdev(MKDEV(INPUT_MAJOR, JOYDEV_MINOR_BASE + minor),
S_IFCHR|S_IRUGO|S_IWUSR, "js%d", minor); S_IFCHR|S_IRUGO|S_IWUSR, "input/js%d", minor);
return &joydev->handle; return &joydev->handle;
} }
......
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