diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-09-20 16:42:25 -0600 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-09-26 13:51:48 -0600 |
commit | 896de0090a85f4c3a2b37fc0f46215a73c5b5429 (patch) | |
tree | 7534ebddc4049159e762e5f454a56ba585f6b186 /drivers/infiniband/core/cma_configfs.c | |
parent | RDMA/drivers: Use dev_err/dbg/etc instead of pr_* + ibdev->name (diff) | |
download | linux-dev-896de0090a85f4c3a2b37fc0f46215a73c5b5429.tar.xz linux-dev-896de0090a85f4c3a2b37fc0f46215a73c5b5429.zip |
RDMA/core: Use dev_name instead of ibdev->name
These return the same thing but dev_name is a more conventional use of the
kernel API.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Diffstat (limited to 'drivers/infiniband/core/cma_configfs.c')
-rw-r--r-- | drivers/infiniband/core/cma_configfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cma_configfs.c b/drivers/infiniband/core/cma_configfs.c index eee38b40be99..8c2dfb3e294e 100644 --- a/drivers/infiniband/core/cma_configfs.c +++ b/drivers/infiniband/core/cma_configfs.c @@ -65,7 +65,7 @@ static struct cma_dev_port_group *to_dev_port_group(struct config_item *item) static bool filter_by_name(struct ib_device *ib_dev, void *cookie) { - return !strcmp(ib_dev->name, cookie); + return !strcmp(dev_name(&ib_dev->dev), cookie); } static int cma_configfs_params_get(struct config_item *item, |