[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:
@@ -370,8 +370,8 @@ static int init_coda_psdev(void)
|
||||
}
|
||||
devfs_mk_dir ("coda");
|
||||
for (i = 0; i < MAX_CODADEVS; i++) {
|
||||
class_device_create(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR,i),
|
||||
NULL, "cfs%d", i);
|
||||
class_device_create(coda_psdev_class, NULL,
|
||||
MKDEV(CODA_PSDEV_MAJOR,i), NULL, "cfs%d", i);
|
||||
err = devfs_mk_cdev(MKDEV(CODA_PSDEV_MAJOR, i),
|
||||
S_IFCHR|S_IRUSR|S_IWUSR, "coda/%d", i);
|
||||
if (err)
|
||||
|
Reference in New Issue
Block a user