[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>
此提交包含在:
@@ -45,7 +45,7 @@ struct class_device *hwmon_device_register(struct device *dev)
|
||||
return ERR_PTR(-ENOMEM);
|
||||
|
||||
id = id & MAX_ID_MASK;
|
||||
cdev = class_device_create(hwmon_class, MKDEV(0,0), dev,
|
||||
cdev = class_device_create(hwmon_class, NULL, MKDEV(0,0), dev,
|
||||
HWMON_ID_FORMAT, id);
|
||||
|
||||
if (IS_ERR(cdev))
|
||||
|
新增問題並參考
封鎖使用者