RDMA/drivers: 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: Leon Romanovsky <leonro@mellanox.com>
This commit is contained in:
@@ -687,7 +687,7 @@ static struct ib_pd *nes_alloc_pd(struct ib_device *ibdev,
|
||||
}
|
||||
|
||||
nes_debug(NES_DBG_PD, "Allocating PD (%p) for ib device %s\n",
|
||||
nespd, nesvnic->nesibdev->ibdev.name);
|
||||
nespd, dev_name(&nesvnic->nesibdev->ibdev.dev));
|
||||
|
||||
nespd->pd_id = (pd_num << (PAGE_SHIFT-12)) + nesadapter->base_pd;
|
||||
|
||||
|
Reference in New Issue
Block a user