diff options
author | Jason Gunthorpe <jgunthorpe@obsidianresearch.com> | 2015-08-04 15:23:34 -0600 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-08-30 18:08:50 -0400 |
commit | 55aeed06544f675f25aef06a8c47b0b6b8850f4f (patch) | |
tree | b44faef6b5eff332fb0317a6802de01c98b92742 /drivers/infiniband/core/core_priv.h | |
parent | e999869548b9ab97b7dffa053ba2fee81c31d069 (diff) | |
download | linux-55aeed06544f675f25aef06a8c47b0b6b8850f4f.tar.bz2 |
IB/core: Make ib_alloc_device init the kobject
This gets rid of the weird in-between state where struct ib_device
was allocated but the kobject didn't work.
Consequently ib_device_release is now guaranteed to be called in
all situations and we needn't duplicate its kfrees on error paths.
Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/core_priv.h')
-rw-r--r-- | drivers/infiniband/core/core_priv.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/infiniband/core/core_priv.h b/drivers/infiniband/core/core_priv.h index 87d1936f5c1c..950583a62e3b 100644 --- a/drivers/infiniband/core/core_priv.h +++ b/drivers/infiniband/core/core_priv.h @@ -43,9 +43,6 @@ int ib_device_register_sysfs(struct ib_device *device, u8, struct kobject *)); void ib_device_unregister_sysfs(struct ib_device *device); -int ib_sysfs_setup(void); -void ib_sysfs_cleanup(void); - int ib_cache_setup(void); void ib_cache_cleanup(void); |