diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-09-21 00:42:25 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-09-26 21:51:48 +0200 |
commit | 896de0090a85f4c3a2b37fc0f46215a73c5b5429 (patch) | |
tree | 7534ebddc4049159e762e5f454a56ba585f6b186 /drivers/infiniband/core/user_mad.c | |
parent | RDMA/drivers: Use dev_err/dbg/etc instead of pr_* + ibdev->name (diff) | |
download | linux-896de0090a85f4c3a2b37fc0f46215a73c5b5429.tar.xz linux-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/user_mad.c')
-rw-r--r-- | drivers/infiniband/core/user_mad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c index c34a6852d691..9961859da06a 100644 --- a/drivers/infiniband/core/user_mad.c +++ b/drivers/infiniband/core/user_mad.c @@ -1132,7 +1132,7 @@ static ssize_t show_ibdev(struct device *dev, struct device_attribute *attr, if (!port) return -ENODEV; - return sprintf(buf, "%s\n", port->ib_dev->name); + return sprintf(buf, "%s\n", dev_name(&port->ib_dev->dev)); } static DEVICE_ATTR(ibdev, S_IRUGO, show_ibdev, NULL); |