aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/class.c2
-rw-r--r--drivers/base/core.c2
-rw-r--r--drivers/md/md.c2
-rw-r--r--drivers/net/iseries_veth.c4
-rw-r--r--drivers/uio/uio.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/drivers/base/class.c b/drivers/base/class.c
index 8e3cba224384..61fd26cc9f0e 100644
--- a/drivers/base/class.c
+++ b/drivers/base/class.c
@@ -553,7 +553,7 @@ static struct class_device_attribute class_uevent_attr =
553void class_device_initialize(struct class_device *class_dev) 553void class_device_initialize(struct class_device *class_dev)
554{ 554{
555 class_dev->kobj.kset = &class_obj_subsys; 555 class_dev->kobj.kset = &class_obj_subsys;
556 kobject_init_ng(&class_dev->kobj, &class_device_ktype); 556 kobject_init(&class_dev->kobj, &class_device_ktype);
557 INIT_LIST_HEAD(&class_dev->node); 557 INIT_LIST_HEAD(&class_dev->node);
558} 558}
559 559
diff --git a/drivers/base/core.c b/drivers/base/core.c
index e88170293ca0..675a719dcdd2 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -525,7 +525,7 @@ static void klist_children_put(struct klist_node *n)
525void device_initialize(struct device *dev) 525void device_initialize(struct device *dev)
526{ 526{
527 dev->kobj.kset = devices_kset; 527 dev->kobj.kset = devices_kset;
528 kobject_init_ng(&dev->kobj, &device_ktype); 528 kobject_init(&dev->kobj, &device_ktype);
529 klist_init(&dev->klist_children, klist_children_get, 529 klist_init(&dev->klist_children, klist_children_get,
530 klist_children_put); 530 klist_children_put);
531 INIT_LIST_HEAD(&dev->dma_pools); 531 INIT_LIST_HEAD(&dev->dma_pools);
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 989d8549f988..ae800ba061a6 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -2033,7 +2033,7 @@ static mdk_rdev_t *md_import_device(dev_t newdev, int super_format, int super_mi
2033 if (err) 2033 if (err)
2034 goto abort_free; 2034 goto abort_free;
2035 2035
2036 kobject_init_ng(&rdev->kobj, &rdev_ktype); 2036 kobject_init(&rdev->kobj, &rdev_ktype);
2037 2037
2038 rdev->desc_nr = -1; 2038 rdev->desc_nr = -1;
2039 rdev->saved_raid_disk = -1; 2039 rdev->saved_raid_disk = -1;
diff --git a/drivers/net/iseries_veth.c b/drivers/net/iseries_veth.c
index ee15667d6135..419861cbc65e 100644
--- a/drivers/net/iseries_veth.c
+++ b/drivers/net/iseries_veth.c
@@ -844,7 +844,7 @@ static int veth_init_connection(u8 rlp)
844 844
845 /* This gets us 1 reference, which is held on behalf of the driver 845 /* This gets us 1 reference, which is held on behalf of the driver
846 * infrastructure. It's released at module unload. */ 846 * infrastructure. It's released at module unload. */
847 kobject_init_ng(&cnx->kobject, &veth_lpar_connection_ktype); 847 kobject_init(&cnx->kobject, &veth_lpar_connection_ktype);
848 848
849 msgs = kcalloc(VETH_NUMBUFFERS, sizeof(struct veth_msg), GFP_KERNEL); 849 msgs = kcalloc(VETH_NUMBUFFERS, sizeof(struct veth_msg), GFP_KERNEL);
850 if (! msgs) { 850 if (! msgs) {
@@ -1083,7 +1083,7 @@ static struct net_device * __init veth_probe_one(int vlan,
1083 return NULL; 1083 return NULL;
1084 } 1084 }
1085 1085
1086 kobject_init_ng(&port->kobject, &veth_port_ktype); 1086 kobject_init(&port->kobject, &veth_port_ktype);
1087 if (0 != kobject_add(&port->kobject, &dev->dev.kobj, "veth_port")) 1087 if (0 != kobject_add(&port->kobject, &dev->dev.kobj, "veth_port"))
1088 veth_error("Failed adding port for %s to sysfs.\n", dev->name); 1088 veth_error("Failed adding port for %s to sysfs.\n", dev->name);
1089 1089
diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c
index 1ec2d31f2639..f352731add64 100644
--- a/drivers/uio/uio.c
+++ b/drivers/uio/uio.c
@@ -169,7 +169,7 @@ static int uio_dev_add_attributes(struct uio_device *idev)
169 map = kzalloc(sizeof(*map), GFP_KERNEL); 169 map = kzalloc(sizeof(*map), GFP_KERNEL);
170 if (!map) 170 if (!map)
171 goto err; 171 goto err;
172 kobject_init_ng(&map->kobj, &map_attr_type); 172 kobject_init(&map->kobj, &map_attr_type);
173 map->mem = mem; 173 map->mem = mem;
174 mem->map = map; 174 mem->map = map;
175 ret = kobject_add(&map->kobj, idev->map_dir, "map%d", mi); 175 ret = kobject_add(&map->kobj, idev->map_dir, "map%d", mi);