[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:
@@ -863,7 +863,7 @@ static int __init ppp_init(void)
|
||||
err = PTR_ERR(ppp_class);
|
||||
goto out_chrdev;
|
||||
}
|
||||
class_device_create(ppp_class, MKDEV(PPP_MAJOR, 0), NULL, "ppp");
|
||||
class_device_create(ppp_class, NULL, MKDEV(PPP_MAJOR, 0), NULL, "ppp");
|
||||
err = devfs_mk_cdev(MKDEV(PPP_MAJOR, 0),
|
||||
S_IFCHR|S_IRUSR|S_IWUSR, "ppp");
|
||||
if (err)
|
||||
|
Reference in New Issue
Block a user