RDMA: Move owner into struct ib_device_ops
This more closely follows how other subsytems work, with owner being a member of the structure containing the function pointers. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
@@ -1482,6 +1482,7 @@ static void qib_fill_device_attr(struct qib_devdata *dd)
|
||||
}
|
||||
|
||||
static const struct ib_device_ops qib_dev_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.driver_id = RDMA_DRIVER_QIB,
|
||||
|
||||
.init_port = qib_create_port_files,
|
||||
@@ -1547,7 +1548,6 @@ int qib_register_ib_device(struct qib_devdata *dd)
|
||||
if (!ib_qib_sys_image_guid)
|
||||
ib_qib_sys_image_guid = ppd->guid;
|
||||
|
||||
ibdev->owner = THIS_MODULE;
|
||||
ibdev->node_guid = ppd->guid;
|
||||
ibdev->phys_port_cnt = dd->num_pports;
|
||||
ibdev->dev.parent = &dd->pcidev->dev;
|
||||
|
Reference in New Issue
Block a user