[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 <gregkh@suse.de>
This commit is contained in:
@@ -567,7 +567,7 @@ static int __init oss_init(void)
|
||||
devfs_mk_cdev(MKDEV(SOUND_MAJOR, dev_list[i].minor),
|
||||
S_IFCHR | dev_list[i].mode,
|
||||
"sound/%s", dev_list[i].name);
|
||||
class_device_create(sound_class,
|
||||
class_device_create(sound_class, NULL,
|
||||
MKDEV(SOUND_MAJOR, dev_list[i].minor),
|
||||
NULL, "%s", dev_list[i].name);
|
||||
|
||||
@@ -579,7 +579,7 @@ static int __init oss_init(void)
|
||||
dev_list[i].minor + (j*0x10)),
|
||||
S_IFCHR | dev_list[i].mode,
|
||||
"sound/%s%d", dev_list[i].name, j);
|
||||
class_device_create(sound_class,
|
||||
class_device_create(sound_class, NULL,
|
||||
MKDEV(SOUND_MAJOR, dev_list[i].minor + (j*0x10)),
|
||||
NULL, "%s%d", dev_list[i].name, j);
|
||||
}
|
||||
|
Fai riferimento in un nuovo problema
Block a user