From: Lijun Ou Date: Tue, 29 Nov 2016 23:10:30 +0000 (+0000) Subject: IB/hns: Fix the IB device name X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3b5184be89449275e5396512ab0127fc19ce359e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git IB/hns: Fix the IB device name This patch mainly fix the name for IB device in order to match with libhns. Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c b/drivers/infiniband/hw/hns/hns_roce_main.c index 28a8f24366df..eddb053ff0ba 100644 --- a/drivers/infiniband/hw/hns/hns_roce_main.c +++ b/drivers/infiniband/hw/hns/hns_roce_main.c @@ -433,7 +433,7 @@ static int hns_roce_register_device(struct hns_roce_dev *hr_dev) spin_lock_init(&iboe->lock); ib_dev = &hr_dev->ib_dev; - strlcpy(ib_dev->name, "hisi_%d", IB_DEVICE_NAME_MAX); + strlcpy(ib_dev->name, "hns_%d", IB_DEVICE_NAME_MAX); ib_dev->owner = THIS_MODULE; ib_dev->node_type = RDMA_NODE_IB_CA;