RDMA/ulp: 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: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
This commit is contained in:
@@ -447,7 +447,7 @@ static inline void rvt_set_ibdev_name(struct rvt_dev_info *rdi,
|
||||
*/
|
||||
static inline const char *rvt_get_ibdev_name(const struct rvt_dev_info *rdi)
|
||||
{
|
||||
return rdi->ibdev.name;
|
||||
return dev_name(&rdi->ibdev.dev);
|
||||
}
|
||||
|
||||
static inline struct rvt_pd *ibpd_to_rvtpd(struct ib_pd *ibpd)
|
||||
|
Reference in New Issue
Block a user