diff options
| author | Parav Pandit <[email protected]> | 2018-09-05 09:47:59 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2018-09-05 16:19:25 -0600 |
| commit | c5c4d92e70f37369b5bdca5e85f9fc55dc2c8a3b (patch) | |
| tree | bb748817d8ea061ab5ce60c05d88e2db0bceb5b3 /tools/perf/scripts/python | |
| parent | adee9f3f3bbb317c5469f84deba01eef4b86515b (diff) | |
RDMA/uverbs: Use cdev_device_add() instead of cdev_add()
Instead of doing two step process to add char device and create underlying
device, use cdev_device_add() which does both.
Currently a kobject per uverbs_device is created to keep reference to its
holding ib_uverbs_device in addition to its underlying device 'dev'.
Instead just use uverbs_device->dev to keep a reference to.
With this change there is single reference tracker for ib_uverbs_device
structure.
This allows for subsequent patch to registers group attribute as well
using single API cdev_device_add().
Signed-off-by: Parav Pandit <[email protected]>
Reviewed-by: Daniel Jurgens <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions