mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -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
|
|
@ -936,7 +936,7 @@ static int ch_probe(struct device *dev)
|
|||
if (init)
|
||||
ch_init_elem(ch);
|
||||
|
||||
class_device_create(ch_sysfs_class,
|
||||
class_device_create(ch_sysfs_class, NULL,
|
||||
MKDEV(SCSI_CHANGER_MAJOR,ch->minor),
|
||||
dev, "s%s", ch->name);
|
||||
|
||||
|
|
|
|||
|
|
@ -5627,7 +5627,7 @@ static void osst_sysfs_add(dev_t dev, struct device *device, struct osst_tape *
|
|||
|
||||
if (!osst_sysfs_valid) return;
|
||||
|
||||
osst_class_member = class_device_create(osst_sysfs_class, dev, device, "%s", name);
|
||||
osst_class_member = class_device_create(osst_sysfs_class, NULL, dev, device, "%s", name);
|
||||
if (IS_ERR(osst_class_member)) {
|
||||
printk(KERN_WARNING "osst :W: Unable to add sysfs class member %s\n", name);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -1550,7 +1550,7 @@ sg_add(struct class_device *cl_dev, struct class_interface *cl_intf)
|
|||
if (sg_sysfs_valid) {
|
||||
struct class_device * sg_class_member;
|
||||
|
||||
sg_class_member = class_device_create(sg_sysfs_class,
|
||||
sg_class_member = class_device_create(sg_sysfs_class, NULL,
|
||||
MKDEV(SCSI_GENERIC_MAJOR, k),
|
||||
cl_dev->dev, "%s",
|
||||
disk->disk_name);
|
||||
|
|
|
|||
|
|
@ -4375,7 +4375,7 @@ static void do_create_class_files(struct scsi_tape *STp, int dev_num, int mode)
|
|||
snprintf(name, 10, "%s%s%s", rew ? "n" : "",
|
||||
STp->disk->disk_name, st_formats[i]);
|
||||
st_class_member =
|
||||
class_device_create(st_sysfs_class,
|
||||
class_device_create(st_sysfs_class, NULL,
|
||||
MKDEV(SCSI_TAPE_MAJOR,
|
||||
TAPE_MINOR(dev_num, mode, rew)),
|
||||
&STp->device->sdev_gendev, "%s", name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue