mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] Driver Core: fix up all callers of class_device_create()
The previous patch adding the ability to nest struct class_device changed the paramaters to the call class_device_create(). This patch fixes up all in-kernel users of the function. Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
51d172d5f3
commit
53f4654272
52 changed files with 86 additions and 73 deletions
|
|
@ -689,7 +689,7 @@ static struct input_handle *evdev_connect(struct input_handler *handler, struct
|
|||
|
||||
devfs_mk_cdev(MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + minor),
|
||||
S_IFCHR|S_IRUGO|S_IWUSR, "input/event%d", minor);
|
||||
class_device_create(input_class,
|
||||
class_device_create(input_class, NULL,
|
||||
MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + minor),
|
||||
dev->dev, "event%d", minor);
|
||||
|
||||
|
|
|
|||
|
|
@ -516,7 +516,7 @@ static struct input_handle *joydev_connect(struct input_handler *handler, struct
|
|||
|
||||
devfs_mk_cdev(MKDEV(INPUT_MAJOR, JOYDEV_MINOR_BASE + minor),
|
||||
S_IFCHR|S_IRUGO|S_IWUSR, "input/js%d", minor);
|
||||
class_device_create(input_class,
|
||||
class_device_create(input_class, NULL,
|
||||
MKDEV(INPUT_MAJOR, JOYDEV_MINOR_BASE + minor),
|
||||
dev->dev, "js%d", minor);
|
||||
|
||||
|
|
|
|||
|
|
@ -651,7 +651,7 @@ static struct input_handle *mousedev_connect(struct input_handler *handler, stru
|
|||
|
||||
devfs_mk_cdev(MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + minor),
|
||||
S_IFCHR|S_IRUGO|S_IWUSR, "input/mouse%d", minor);
|
||||
class_device_create(input_class,
|
||||
class_device_create(input_class, NULL,
|
||||
MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + minor),
|
||||
dev->dev, "mouse%d", minor);
|
||||
|
||||
|
|
@ -740,7 +740,7 @@ static int __init mousedev_init(void)
|
|||
|
||||
devfs_mk_cdev(MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + MOUSEDEV_MIX),
|
||||
S_IFCHR|S_IRUGO|S_IWUSR, "input/mice");
|
||||
class_device_create(input_class,
|
||||
class_device_create(input_class, NULL,
|
||||
MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + MOUSEDEV_MIX), NULL, "mice");
|
||||
|
||||
#ifdef CONFIG_INPUT_MOUSEDEV_PSAUX
|
||||
|
|
|
|||
|
|
@ -414,7 +414,7 @@ static struct input_handle *tsdev_connect(struct input_handler *handler,
|
|||
S_IFCHR|S_IRUGO|S_IWUSR, "input/ts%d", minor);
|
||||
devfs_mk_cdev(MKDEV(INPUT_MAJOR, TSDEV_MINOR_BASE + minor + TSDEV_MINORS/2),
|
||||
S_IFCHR|S_IRUGO|S_IWUSR, "input/tsraw%d", minor);
|
||||
class_device_create(input_class,
|
||||
class_device_create(input_class, NULL,
|
||||
MKDEV(INPUT_MAJOR, TSDEV_MINOR_BASE + minor),
|
||||
dev->dev, "ts%d", minor);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue