Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9cb074b authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Kobject: rename kobject_init_ng() to kobject_init()



Now that the old kobject_init() function is gone, rename
kobject_init_ng() to kobject_init() to clean up the namespace.

Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e1543ddf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -185,7 +185,7 @@ static elevator_t *elevator_alloc(struct request_queue *q,

	eq->ops = &e->ops;
	eq->elevator_type = e;
	kobject_init_ng(&eq->kobj, &elv_ktype);
	kobject_init(&eq->kobj, &elv_ktype);
	mutex_init(&eq->sysfs_lock);

	eq->hash = kmalloc_node(sizeof(struct hlist_head) * ELV_HASH_ENTRIES,
+1 −1
Original line number Diff line number Diff line
@@ -1862,7 +1862,7 @@ struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id)

	init_timer(&q->unplug_timer);

	kobject_init_ng(&q->kobj, &queue_ktype);
	kobject_init(&q->kobj, &queue_ktype);

	mutex_init(&q->sysfs_lock);

+1 −1
Original line number Diff line number Diff line
@@ -553,7 +553,7 @@ static struct class_device_attribute class_uevent_attr =
void class_device_initialize(struct class_device *class_dev)
{
	class_dev->kobj.kset = &class_obj_subsys;
	kobject_init_ng(&class_dev->kobj, &class_device_ktype);
	kobject_init(&class_dev->kobj, &class_device_ktype);
	INIT_LIST_HEAD(&class_dev->node);
}

+1 −1
Original line number Diff line number Diff line
@@ -525,7 +525,7 @@ static void klist_children_put(struct klist_node *n)
void device_initialize(struct device *dev)
{
	dev->kobj.kset = devices_kset;
	kobject_init_ng(&dev->kobj, &device_ktype);
	kobject_init(&dev->kobj, &device_ktype);
	klist_init(&dev->klist_children, klist_children_get,
		   klist_children_put);
	INIT_LIST_HEAD(&dev->dma_pools);
+1 −1
Original line number Diff line number Diff line
@@ -2033,7 +2033,7 @@ static mdk_rdev_t *md_import_device(dev_t newdev, int super_format, int super_mi
	if (err)
		goto abort_free;

	kobject_init_ng(&rdev->kobj, &rdev_ktype);
	kobject_init(&rdev->kobj, &rdev_ktype);

	rdev->desc_nr = -1;
	rdev->saved_raid_disk = -1;
Loading